묻고 답해요
131만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
실행시 에러 질문
실행시 다음과 같은 에러가 발생 합니다. 추가 해 줄 것이 있는 것인지요? 에러 내용 6 issues were found when checking AAR metadata: 1. Dependency 'androidx.appcompat:appcompat-resources:1.6.1' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32.
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
아 EditText를 string으로 변환하려면 .text가 있어야 됐군요..
customDialogBinding.btnSave.setOnClickListener { // 여기에서 etMemo.toString으로 썼었습니다. val memo = customDialogBinding.etMemo.text.toString() val database = Firebase.database val myRef = database.getReference("myMemo") val model = DataModel(dateText, memo) myRef .push() .setValue(model) mAlertDialog.dismiss() }editText를 string으로 변환하려면 text를 썼어야됐는데 못봐가지고 그냥 editText.toString하다가memo=androidx.appcompat.widget.AppCompatEditText{9486c89 VFED..CL. .F...... 53,53-887,211 #7f0901fb app:id/et_memo aid=1073741827}자꾸 이렇게 파이어베이스에 들어가서 몇시간동안 원인 찾았네요 ㅠㅠ전전강의까지 가서 다시 분석해보니 답을 찾았습니다 ㅋㅋㅋ 모두 포기하지말고 화이팅 😂
-
미해결[2023 코틀린 강의 무료제공] 기초에서 수익 창출까지, 안드로이드 프로그래밍 A-Z
코드 실행이 안돼요 ㅠㅠ
함수 강의 수강하면서 안드로이드 스튜디오에서 스크래치 파일에 똑같이 구현하면서 run 해보았는데 저는 콘솔창에 아무 값이 뜨지 않아요 ㅠ
-
미해결실전! 코틀린과 스프링 부트로 도서관리 애플리케이션 개발하기 (Java 프로젝트 리팩토링)
선생님 19강 UI 테스트 하시는 부분에서 질문이 있습니다.
19강 9분30초 지점에서 책 등록할 때는 400에러가 나면서 책 등록이 안 되는데 왜 그 전에 유저는 바로 정상적으로 등록이 되는걸까요?build.gradle에 implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3' 이 디펜던시를 추가해주기 전에도 유저 등록은 정상적으로 되는 이유가 궁금합니다!제가 자바로 개발을 할 때도 웹 계층 DTO에 필드가 한 개만 있을 때는 잭슨이 정상적으로 작동 안 해서 @NoArgConstructor 어노테이션이나 @Setter 등을 꼭 붙여줘야 이게 정상 작동했던 경험이 있습니다. (구글링을 해보니 잭슨 라이브러리 쪽 이슈인데 아직도 open 상태라는 글을 본 거 같기도 합니다..)혹시 UserCreateRequest에는 프로퍼티가 2개 있고, BookRequest에는 프로퍼티가 1개 뿐이라 이런 일이 생긴 것인지도 좀 궁금하네요..
-
해결됨[2023 코틀린 강의 무료제공] 기초에서 수익 창출까지, 안드로이드 프로그래밍 A-Z
버튼 색깔이 보라색으로 고정되어있을 때
스톱워치 버튼의 색깔이 보라색으로 고정되어있을 경우 올바르게 해결한 것이 맞는지 질문드립니다.themes.xml 파일에서 style태그에 parent값이 다음과 같습니다.Theme.Material3.DayNight.NoActionBar저는 이 부분을 다음과 같은 값으로 교체하여 해결했습니다.Theme.AppCompat.Light.NoActionBar
-
미해결[LV1] Jetpack Compose - UI 연습하기
웹뷰 화면 깨짐 현상에 대해 질문드립니다!
똑같은 코드를 작성하고 앱을 실행했더니 에뮬레이터 화면이 깨져서 보이는 현상이 일어납니다! 화면 깨짐 현상이 일어나는 사진과 전체 코드도 첨부하겠습니다!
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
프래그먼트 오류
프래그먼트 강의 몇번이고 시도해봤는데 계속 동일한 현상이 일어나 문의드립니다~아래는 오류코드 입니다!구글링해도 찾기가 어렵네요 ㅠㅠ +++++++++++++++++++++++++++++++ 8 issues were found when checking AAR metadata: 1. Dependency 'androidx.navigation:navigation-common:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 2. Dependency 'androidx.navigation:navigation-common-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 3. Dependency 'androidx.navigation:navigation-runtime:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 4. Dependency 'androidx.navigation:navigation-ui:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 5. Dependency 'androidx.navigation:navigation-runtime-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 6. Dependency 'androidx.navigation:navigation-ui-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 7. Dependency 'androidx.navigation:navigation-fragment-ktx:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 8. Dependency 'androidx.navigation:navigation-fragment:2.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.0.2 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on).
-
미해결[2023 코틀린 강의 무료제공] 기초에서 수익 창출까지, 안드로이드 프로그래밍 A-Z
코틀린 프로젝트를 생성하였는데 자바 프로젝트가 생성됩니다
안녕하세요 조이스선생님안드로이드 스튜디오 개발 환경설정 강의를 보고 그대로 따라 프로젝트를 생성해 보았는데 자바 프로젝트가 생성됩니다 무엇이 잘못된 걸까요?너무 기초적인 질문인 것 같아 민망하지만 혼자서는 도저히 답이 나오지 않아 질문 드립니다좋은 강의 만들어 주셔서 감사합니다
-
미해결코틀린으로 만드는 스프링부트
오류가 발생합니다
Could not create parent directory for lock file C:\Program Files\Java\jdk-20\wrapper\dists\gradle-8.2.1-bin\5hap6b9n41hkg4jeh2au2pllh\gradle-8.2.1-bin.zip.lck이런 오류가 나면서 프로젝트폴더내 build.gradle.kts 폴더의 하위폴더의 전체 파일들에 빨간줄 즉 오류가 발생하는군요 어떻게 해야하는지 왕초보라 ...
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
강의 전부 수강했어요 감사해요
강사님과 수강하시는 분들늘 건강하시고 부자되세요
-
미해결윤재성의 Google 공식 언어 Kotlin 프로그래밍 시작하기
34강 리플렉션강의중에서
class TestClass() {constructor(a:Int) : this() { } constructor(a:Int, b: Int) : this() { } fun testMethod() {}}fun main(){val t1 : TestClass = TestClass()println("추상클래스인지아닌지: ${t1::class.isAbstract}") // 변수명: company_name}
-
미해결윤재성의 Google 공식 언어 Kotlin 프로그래밍 시작하기
sealed class 관련 code 내 when 에서 오류가 발생합니다
fun checkNumberS(obj :NumberS) {when(obj) { // <<<<< 오류발생줄is NumberS.SeOne -> {println("ONE 입니다")println(obj.a)println(obj.b)}is NumberS.SeTwo -> {println("TWO 입니다")println(obj.a)println(obj.b)when(obj.a) {1 -> println("1 입니다")2 -> println("2 입니다")3 -> println("3 입니다")}}is NumberS.SeThr -> {println("THREE 입니다")println(obj.a)println(obj.b)}}}sealed class NumberS {class SeOne(val a:Int, val b: Int) : NumberS()class SeTwo(val a:Int, val b: String) : NumberS()class SeThr(val a:Int, val b: Double) : NumberS()class SeFou(val a:Int) : NumberS() {fun sealedFun () {}}}fun main() {val c1 = NumberS.SeOne(1, 3)checkNumberS(c1) // ONE 입니다 1 3 val c2 = NumberS.SeTwo(3, "sealed class")checkNumberS(c2) // TWO 입니다 3 sealed class 3 입니다 val c3 = NumberS.SeThr(5, 3.1415)checkNumberS(c3) // THREE 입니다 5 3.1415}
-
미해결[초급] 맛보자! 코틀린과 스프링으로 API 호출하기
findTop10ByOrderByCntDesc 함수의 동작 원리에 대한 질문
interface WordRepository :CrudRepository<WordCount, String> { fun findTop10ByOrderByCntDesc() :List<WordCount> }위 findTop10ByOrderByCntDesc 함수는 선언만 되고 실제 구현이 안되어서 CrudRepository 에도 들어가봤지만 virtual 함수도 아닌걸로 보이는데요..예상하는 바는 repository에서 함수명을 query로 자동 변환하여 가져오는 형식으로 느껴집니다.만약 그렇다면, 이 것은 원래 springframework 기능인 것인가요? (완전 웹개발 초보라서 이렇게 문의드립니다...)
-
해결됨[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
버튼을 누르면 회원가입이 되는 이유
안녕하세요 강사님! 강의 잘 보고 있습니다:)auth.createUserWithEmailAndPassword("abc@abc.com", "abcabc") .addOnCompleteListener(this) { task -> if (task.isSuccessful) { Toast.makeText(this, "성공", Toast.LENGTH_SHORT).show() } else { Toast.makeText(this, "실패", Toast.LENGTH_SHORT).show() } } 3:00부분에서 코드상에 버튼 id를 기입한 것도 아닌데 어떻게 회원가입이 되는 것인지 이유가 궁금해서 질문 드립니다!
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
연필 아이콘 누르면 앱 종료되는 문제발생!!
연필 아이콘을 누르면 에뮬레이터가 꺼지는데 이유가 뭘까요..? 어떻게 해결해야 하는지 잘 모르겠습니다!
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
Project 빌드에 아무것도 없는 경우도 있나요?
현재 2시간 동안 파이어베이스에서 빠져나오지 못하고.. 안드로이드 2번이나 설치했습니다.범블비 버전을 설치 했는데 이게 없을 수 있나요?
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
댓글 삭제 기능
강의 전부 다 수강하고 따라하며 그대로 만들어 본 학생입니다 ! 다름이 아니라 댓글을 삭제하는 기능을 넣고싶은데, 혼자 해보려니 도저히 할 엄두가 안나서요.. 혹시 자신이 쓴 댓글을 삭제하는 기능이 있는 소스 코드가 있을까요 ?코드를 하나하나 보면서 이해하고 싶어요.. ㅠㅠ
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
안드로이드 스튜디오 최신버전 dataBinding 오류 해결
이런식으로 오류가 뜹니다. 버전이 안맞아서 그러는것 같기도 한데 제가 혹시 잘못한게 있을까요. 최신버전의 안드로이드 스튜디오입니다.
-
해결됨자바 개발자를 위한 코틀린 입문(Java to Kotlin Starter Guide)
18강 map 질문
val values = fruits.filter { fruit -> fruit.name == "사과" } .mapNotNull { fruit -> fruit.nullOrValue() } nullable한 List에서 null이 아닌 element만 가지고 오는 mapNotNull중에서.. nullOrValue()는 임의로 만드신 확장함수인가요?
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
build에서 계속 문제가 생깁니다.
위와 같이 에러가 발생하는데 어떤 문제가 발생한 것인지 잘모르겠습니다 ㅜ어떻게 해결해야하나요?