inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

176만명의 커뮤니티!! 함께 토론해봐요.

빈프로젝트 형성 후 바로 오류가 납니다

미해결

[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)

empty poject 형성 후 바로 오류가 뜹니다....

  • android
  • kotlin
  • firebase
김진수 댓글 2 좋아요 0 조회수 165

상태바 질문 드립니다.

미해결

[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)

현재 섹션 2까지 진행하였습니다. 스플레쉬 화면 만들 때 타이틀바 제거하면서 상태바의 색상을 노란색으로 바꿔줬는데 로그인 화면 및 회원가입 화면에서는 흰색으로 다시 돌아오는데 어떤 문제인가요??? 그리고 themes.sml 파일이 두개인데 둘 다 설정을 해줘야하는 건가요???

  • android
  • kotlin
  • firebase
정진영 댓글 1 좋아요 0 조회수 161

섹션2 인트로 페이지 꾸미기 질문 드립니다.

해결됨

[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)

해당 강의에서 introActivity layout을 작성하실 때 왜 RelativeLayout을 사용하신건지 궁금합니다 또한, 큰 틀은 ConstraintLayout을 유지한 채로 RelativeLayout을 만드셨는데 그 이유도 궁금합니다

  • android
  • kotlin
  • firebase
정진영 댓글 1 좋아요 0 조회수 167

코루틴 이름 출력관련해서 질문이 있습니다!

해결됨

코틀린 코루틴 완전 정복

println("[${Thread.currentThread().name}] 코루틴 실행2") 위 코드 실행할 때 실행결과가 아래와 같이 나오는데 @coroutine#1 어떻게 이렇게 코루틴 이름까지 같이 나오게 할 수 있나요?! [출력 결과] [MyThread1 @coroutine#1] 코루틴 실행 2

  • android
  • kotlin
  • coroutine
  • kotlinx.coroutines
  • android-coroutine
JS 댓글 1 좋아요 2 조회수 202

섹션8 게시글 정보 화면에 표시

미해결

Flutter로 SNS 앱 만들기

4:19 에서 스크린에 이렇게 나오네요. 그리고 , 잠시후 정상적으로 표시됩니다.

  • flutter
  • android
  • firebase
  • dart
vadain2000 댓글 1 좋아요 0 조회수 157

게시판 글을 길게 쓸경우

미해결

[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)

게시판에 글을 길게 쓰고 업로드 할 경우 게시판 글 리스트에서 글의 처음 일부만 보여주고 나머지 글자들은 ... 처리를 하고 싶은데 어떻게 해야 할 지 모르겠습니다. (구분 선 아래로 글을 먹는 오류가 생깁니다.)

  • android
  • kotlin
sms_419 댓글 2 좋아요 0 조회수 185

coroutineScope에 대해 질문 있습니다.

해결됨

코틀린 코루틴 완전 정복

suspend fun searchByKeyword(keyword: String): Array<String> = coroutineScope { val dbResultsDeferred = async { searchFromDB(keyword) } val serverResultsDeferred = async { searchFromServer(keyword) } return@coroutineScope arrayOf(*dbResultsDeferred.await(), *serverResultsDeferred.await()) } 안녕하세요 "일시 중단 함수의 사용" 학습 중 나온 코드에 대해 질문 드립니다. 강의에서는 " coroutineScope을 사용하면, 일시중단 함수 내부에 coroutineScope 객체를 만들 수 있다." 라고 하셨는데, 이 부분이 이해가 잘 안갑니다. 먼저 coroutineScope {}를 선언하고, async 비동기 작업 -> delay 일시중단 순으로 진행되는데 일시중단 함수 내부에 coroutineScope 객체를 만들 수 있는 것이 이해가 잘 가지 않습니다. 제가 정리하기로는, " coroutineScope을 사용하면, 일시중단 함수 내부에 coroutineScope 객체를 만들 수 있다."라기 보다는 위 그림처럼 "하나의 coroutineScope에 2개의 비동기 작업과 각각의 일시중단 함수를 포함하는 것"으로 받아들여지는데 제가 어느 부분을 놓치고 있는건지 잘 모르겠습니다. 감사합니다. ^^

  • android
  • kotlin
  • coroutine
  • kotlinx.coroutines
  • android-coroutine
liltjay 댓글 2 좋아요 1 조회수 167

아키팩처 패턴

미해결

Flutter로 메신저앱 만들기

안녕하세요 이 프로젝트가 어떤 아키텍처 패턴(MVC, MVVM, MVP)을 사용했다고 할 수 있을까요 제 생각에는 Model와 View가 있는것 같은데 Provider을 Controller로 보는게 맞는지 궁금합니다.

  • flutter
  • android
  • firebase
  • dart
  • riverpod
Seokha Kang 댓글 0 좋아요 0 조회수 166

리스트 뷰 질문 드립니다.

해결됨

[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)

package com.jinyoung.myapplication import android.view.View import android.view.ViewGroup import android.widget.BaseAdapter class ListViewAdapter(var List : MutableList<String>) : BaseAdapter() { override fun getCount(): Int { return List.size } override fun getItem(p0: Int): Any { return List[p0] } override fun getItemId(p0: Int): Long { TODO("Not yet implemented") } override fun getView(p0: Int, p1: View?, p2: ViewGroup?): View { TODO("Not yet implemented") } } 이 코드에서 3번째 함수 getItemId 함수의 return 값이 List[p0].toLong()이 되어야하는거 아닌가요????

  • android
  • kotlin
  • firebase
정진영 댓글 1 좋아요 0 조회수 98

섹션8 게시글 정보가져오기

미해결

Flutter로 SNS 앱 만들기

app/build.gradle 처음 run 하면 콘솔에 나오는 사진입나다. 다시 run 하면 다음과 같이 나옵니다. 그런데 여기에서 app/build.gradle 에 이부분을 추가해서 다리 run을 하면 데이터를 받아오는 모양입니다. 다시 run을 하면 데이터를 받아오지 않고, 다시 run을 하면 데이터를 받아옵니다 그런데 여기서 중단하고 다시 run를 하면 에러가 발생됩니다 여기에서 아래 이부분을 삭제하면 처믐과 같은 현상입니다 뭘 어떻게 해야 할지 모르겠습니다.

  • flutter
  • android
  • firebase
  • dart
vadain2000 댓글 1 좋아요 0 조회수 165

섹션8 게시글 정보 가져오기

미해결

Flutter로 SNS 앱 만들기

데이터를 가져오지 못하고 있습니다. 파일은 멜로 보냈어요

  • flutter
  • android
  • firebase
  • dart
댓글 1 좋아요 0 조회수 121

flutter_file_downloader 패키지 설치 후 앱 실행 시 오류 발생!

미해결

Flutter로 메신저앱 만들기

안녕하세요? 강의 잘 따라해 보고 있습니다. 제목 그대로 동영상 파일을 다운로드 받기 위해 flutter_file_downloader 패키지를 설치한 이후 앱을 재실행하면 오류가 발생합니다. ----------------------------------------------- FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':flutter_file_downloader'. > Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. > Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace. If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 889ms Error: Gradle task assembleDebug failed with exit code 1 ----------------------------------------------- 현재 최신 버전이 2.0.0 인데,, 예제 소스 상의 버전이 1.2.1 인데, 이 버전을 받아 봐도 동일한 현상입니다. 동영상 강의에서 강의노트에 설명을 달아 놓으셨다고 하는데, 강의 노트를 찾을 수가 없네요.. 조언 부탁드립니다.

  • flutter
  • android
  • firebase
  • dart
  • riverpod
011414 댓글 3 좋아요 0 조회수 1042

공유 스레드풀에 대하여 질문 있습니다

미해결

코틀린 코루틴 완전 정복

안녕하세요. 1) "미리 정의된 CoroutineDispatcher - 1. Dispatchers.I O, Dispatchers.Default" 강의 중 마지막 부분에서 Dispatchers.IO 와 Dispatchers.Default가 사용하는 스레드의 이름이 동일한 이유는 공유 스레드풀 때문이라고 하셨는데, 이 부분이 이해가 잘 가지 않습니다. 이것이 중요한 이유가 각각의 Dispatcher가 사용하는 스레드가 실제로는 다름에도 불구하고, 이름은 동일하기 때문에 헷갈리면 안되기 때문인가요? 제가 강조하신 부분을 잘 이해한건지 모르겠습니다. 2) LimitedParallelism은 코루틴 사용 시 모든 부분에 적용해야 하는 것인가요? 아니면 특정 경우에만 사용하면 되는 것인가요? 3) Code3-1~3-4를 실행할 때 어떤 때는 스레드 이름이 DefaultDispatcher-worker-1,2,3으로 뜨지만 또 어떤 때는 1,2,1 또는 1,2,4 또는 1,2,5 이런식으로 뜨는데 이유가 무엇인가요? 감사합니다!

  • android
  • kotlin
  • coroutine
  • kotlinx.coroutines
  • android-coroutine
liltjay 댓글 2 좋아요 2 조회수 403

앱 테스트 구동이 안돼요

미해결

[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)

BTS 강의 레이아웃에 사진삽입 6분 4초쯤 보고 있는데요, 알려주신대로 다음과 같이 코드를 입력하고 앱 구동을 눌렀는데 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="120dp"> <ImageView android:src="@drawable/bts_1" android:layout_width="120dp" android:layout_height="120dp"> <ImageView android:src="@drawable/bts_2" android:layout_width="120dp" android:layout_height="120dp"> <ImageView android:src="@drawable/bts_3" android:layout_width="120dp" android:layout_height="120dp"> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="120dp"> <ImageView android:src="@drawable/bts_4" android:layout_width="120dp" android:layout_height="120dp"> <ImageView android:src="@drawable/bts_5" android:layout_width="120dp" android:layout_height="120dp"> <ImageView android:src="@drawable/bts_6" android:layout_width="120dp" android:layout_height="120dp"> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="120dp"> <ImageView android:src="@drawable/bts_7" android:layout_width="120dp" android:layout_height="120dp"> </LinearLayout> </LinearLayout> 다음 문구와 같이 에러가 떠서 테스트 구동이 안됩니다. Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing com.android.build .gradle.internal.res.ParseLibraryResourcesTask$ParseResourcesRunnable 뭐가 잘못된건가요??

  • android
  • kotlin
  • firebase
댓글 2 좋아요 0 조회수 221

메인화면에서 뒤로가기 눌렀을때 어플종료관련 건

미해결

Flutter로 SNS 앱 만들기

메인화면에서 뒤로가기 눌렀을때 어플 종료를 하고 싶어서 메인화면에서 WillPopScope( onWillPop: () async => false, 이 부분을 수정하였습니다. 수정한 결과 어플이 종료는 되나. 다시 어플을 실행했을때 splash화면에서 다음 화면으로 넘어가지 않습니다.. 아마도 사용자 정보를 가져오지 못해서 그런것 같은데.. 방법이 없을까요?

  • flutter
  • android
  • firebase
  • dart
박수훈 댓글 1 좋아요 0 조회수 266

로그인 로그아웃

미해결

[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)

강의 잘 보고 있습니다 다름이 아니라 로그인 로그아웃 버튼도 만들었고 수업에 나온 것처럼 똑같이 코드를 썼는데도 막상 작동하면 uid까진 출력되는데 문제는 1) 로그아웃 버튼을 누르면 null 메세지가 출력이 안 됩니다 2) 그렇다고 로그아웃 버튼을 누르고 로그인 되어있던 계정을 누르면 toast로 써둔 "로그인 성공"이라는 메세지가 안 뜸 일단 MainActivity.kt에 쓴 코드와 activity_main.xml에 쓴 코드를 올리겠습니다 //MainActivity.kt에 쓴 코드 package com.example.mysampleapp import com.example.mysampleapp.databinding.ActivityMainBinding import android.os.Bundle import android.widget.Button import android.widget.EditText import android.widget.Toast import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import androidx.databinding.DataBindingUtil import com.google.firebase.auth.FirebaseAuth import com.google.firebase.auth.ktx.auth import com.google.firebase.ktx.Firebase class MainActivity : AppCompatActivity() { private lateinit var auth: FirebaseAuth private lateinit var binding : ActivityMainBinding override fun onCreate(savedInstanceState: Bundle?) { // Initialize Firebase Auth auth = Firebase.auth super.onCreate(savedInstanceState) enableEdgeToEdge() setContentView(R.layout.activity_main) Toast.makeText(this, auth.currentUser?.uid.toString(),Toast.LENGTH_SHORT).show() binding = DataBindingUtil.setContentView(this, R.layout.activity_main) val joinBtnClicked = findViewById<Button>(R.id.joinBtn) joinBtnClicked.setOnClickListener { // 첫번째 방법 // val email = findViewById<EditText>(R.id.emailArea) // val pwd = findViewById<EditText>(R.id.pwdArea) //두번째 방법 val email = binding.emailArea val pwd = binding.pwdArea auth.createUserWithEmailAndPassword( email.text.toString(), pwd.text.toString() ) .addOnCompleteListener(this) { task -> if (task.isSuccessful) { Toast.makeText(this,"ok",Toast.LENGTH_SHORT).show() } else { Toast.makeText(this,"no",Toast.LENGTH_SHORT).show() } } binding.logoutBtn.setOnClickListener{ auth.signOut() Toast.makeText(this,auth.currentUser?.uid.toString(),Toast.LENGTH_SHORT).show() } binding.loginBtn.setOnClickListener{ val email = binding.emailArea val pwd = binding.pwdArea auth.signInWithEmailAndPassword( email.text.toString(), pwd.text.toString() ) .addOnCompleteListener(this) { task -> if (task.isSuccessful) { //성공하면 Toast.makeText(this, "로그인 성공", Toast.LENGTH_SHORT).show() //성공하면 UID 값을 띄워보자↓ Toast.makeText(this,auth.currentUser?.uid.toString(),Toast.LENGTH_SHORT).show() } else { //실패하면 Toast.makeText(this, "로그인 실패", Toast.LENGTH_SHORT).show() } } } } } } //activity_main.xml에 쓴 코드 <?xml version="1.0" encoding="utf-8"?> <layout> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:orientation="vertical"> <EditText android:id="@+id/emailArea" android:hint="email" android:layout_width="match_parent" android:layout_height="wrap_content"/> <EditText android:id="@+id/pwdArea" android:hint="pwd" android:layout_width="match_parent" android:layout_height="wrap_content"/> <Button android:id="@+id/joinBtn" android:text="회원가입" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <Button android:id="@+id/logoutBtn" android:text="LOGOUT" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <Button android:id="@+id/loginBtn" android:text="LOGIN" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout> </layout> 긴 글 읽어주심에 감사합니다.... 😥 😥

  • android
  • kotlin
  • firebase
kotlin21sswu 댓글 2 좋아요 0 조회수 239

갤럭시 연결시 게시판에 업로드한 사진이 보이지 않아요.

미해결

[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)

안녕하세요 코틀린강좌를 통해 안드로이드 앱 제작공부를 하고 있는 학생입니다. 다름이 아니라 완성된 앱을 갤럭시 안드로이드폰에 연결하는 작업까지 완료하고 실행하여 오류가 있는 부분을 찾던 중에 게시판에 만들었던 사진첨부 기능이 작동되지 않는것 같아서 문의차 커뮤니티에 올리게되었습니다. 위 사진 처럼 글만 입력이 되고 사진은 보이지 않아서 무슨 문제인지 알고 싶습니다! 코드는 강좌 그대로 사용했습니다!

  • android
  • kotlin
  • firebase
sms_419 댓글 2 좋아요 0 조회수 289

섹션8 게시글 정보가져오기

미해결

Flutter로 SNS 앱 만들기

16:00 에러가 발생되었습니다. 어떻게 해야 하나요.ai 로 질문의 답을 받았는데 잘모르겠습니다. void _getFeedList() { WidgetsBinding.instance.addPostFrameCallback((_) async { try { await feedProvider.getFeedList(); } on CustomException catch (e) { errorDialogWidget(context, e); // 에러출력 } }); } 이부분을 어떻게 처리하면 됩니까

  • flutter
  • android
  • firebase
  • dart
댓글 2 좋아요 0 조회수 199

주사위 앱 듣고 있는 중인데 ActivityMainBinding애 import가 보이지 않습니다

미해결

[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)

<?xml version="1.0" encoding="utf-8"?> <layout> <LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/main" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008000" android:orientation="vertical" tools:context=".MainActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="200dp" android:layout_marginTop="100dp"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="30sp" android:gravity="center" android:textColor="@color/black" android:layout_margin="20dp" android:textStyle="bold" android:text="인생은 주사위 한방에 가는거 아니겠습니까?"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="200dp" android:weightSum="2"> <ImageView android:src="@drawable/dice_1" android:layout_width="120dp" android:layout_height="120dp" android:layout_weight="1"/> <ImageView android:src="@drawable/dice_2" android:layout_width="120dp" android:layout_height="120dp" android:layout_weight="1"/> </LinearLayout> <Button android:id="@+id/DiceStartBtn" android:text="인생 고고" android:layout_width="match_parent" android:background="#@color/black" android:textColor="@color/white" android:layout_height="50dp" android:layout_margin="50dp"/> </LinearLayout> </layout> xml 코드 import org.jetbrains.kotlin.storage.CacheResetOnProcessCanceled.enabled plugins { alias(libs.plugins.android.application) alias(libs.plugins.jetbrains.kotlin.android) } android { namespace = "com.seungwon.dice" compileSdk = 34 defaultConfig { applicationId = "com.seungwon.dice" minSdk = 24 targetSdk = 34 versionCode = 1 versionName = "1.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { isMinifyEnabled = false proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) } } compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" } dataBinding{ enable=true } } dependencies { implementation(libs.androidx.core.ktx) implementation(libs.androidx.appcompat) implementation(libs.material) implementation(libs.androidx.activity) implementation(libs.androidx.constraintlayout) testImplementation(libs.junit) androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.espresso.core) } gradle코드 문제 부분입니다

  • android
  • kotlin
  • firebase
승원 댓글 2 좋아요 0 조회수 172

인기 태그

인프런 TOP Writers

주간 인기글