본문 바로가기

Could not determine the dependencies of task In project 'app' a resolved Google Play services library dependency depends on another at an exact version 간만에 라이브러리 버전을 변경하곤 맞이 하는 오류 메시지 =_ = 한번에 되는게 없군 하곤 뒤적 뒤적 오류 메시지를 확인하는데 * What went wrong: Could not determine the dependencies of task ':app:compileDebugAidl'. > In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1.2.0 -alpha02]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown. Dependency.. 더보기
오류 Kotlin: Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option val mViewModel: T by viewModel { $factory } 를 사용하려고 하는데 컴파일 오류가 발생되어 오류 로그를 보니 Kotlin: Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option 응? JVM 타깃을 변경해달라고? 난 이미 gradle 에 지정해뒀는데? 하고 봤더니 코틀린 옵션은 별도였군 맥 기준 Preferences -> Kotlin Compiler -> Target JVM version 을 1.6 에서 1.8 로 변경한 뒤 Android Studio 를 다시 시작 한.. 더보기
OnBackPressedDispatcher 이용 기존에 Fragment 에서 h/w back key 를 이용하기 위해 OnBackPressedListener 를 생성 한 뒤 interface OnBackPressedListener { fun onBackPressed(): Boolean } activity 에는 아래와 같이 설정 하고 override fun onBackPressed() { // 현재 fragment 가 OnBackPressedListener 를 상속 받고 return true 를 하면 인터페이스에서 // h/w backkey 를 처리한 것으로 본다. val fragment = supportFragmentManager.current if (fragment != null && fragment is OnBackPressedListener &&.. 더보기