분류 전체보기
-
Kotlin을 사용한 프로젝트 build 후 실행 시java.lang.ClassNotFoundException 날 때Android 2020. 6. 9. 10:48
java.lang.ClassNotFoundException Didn't find class "xxx.yyy.zzz.MyApplication" on path DexPathList[[zip file "/data/app/kr.lifesemantics.mvvmtemplate--6ft3ARUZyQ3jJh01-0m-w==/base.apk 위와 같은 에러가 나면 app 수준 build.gradle에서 android 안에 아래 옵션 추가 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
-
WARNING: DSL element 'android.dataBinding.enabled' is obsolete and has been replaced withAndroid 2020. 6. 9. 01:16
WARNING: DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'.It will be removed in version 5.0 of the Android Gradle plugin. 안드로이드 4.0 부터는 data binding 과 view binding 을 사용하기 위해서는 사용 선언 방법이 변경되었다. 앱 수준 gradle에서 변경한다. 4.0미만 android { dataBinding { enabled = true } } android { viewBinding { enabled = true } } 4.0이상 android { buildFeat..
-
'origin' does not appear to be a git repositorySolution 2020. 6. 5. 17:50
git push origin master origin master로 git push 시 에러발생 fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 원격 저장소에 origin/master가 없거나 remote repository 설정이 잘못되어있는 경우 원격 저장소명 확인 git remote -v 해결방법 기존 연결을 끊고 다시 연결 해본다. -기존 원격저장소 연결 삭제 git remote remove repository git remot..
-
안드로이드 스튜디오 터미널에서 adb 실행되지 않을 때 윈도우 환경에서 adb 경로 설정Android 2020. 6. 4. 11:33
adb가 환경변수 path에 있어야 한다 adb의 경로는 ADT Bundle/sdk/platform-tools 인데 안드로이드 스튜디오 메뉴 File - Settings 에서 'sdk'로 검색하면 경로를 알 수 있다. 시스템 환경 변수(제어판 - 시스템 - 시스템 속성 - 고급 탭 - 환경 변수)의 path에 추가해주면 모든 경로에서 사용할 수 있는데 바로 적용은 되지 않는다. 바로 적용하고 싶으면 아래와 같이 본인의 sdk경로아래 platform-tools까지 set으로 기존경로에 adb가 있는 곳까지 경로를 잡아준다. set PATH=%PATH%;C:\Users\ProDesk\AppData\Local\Android\Sdk/platform-tools
-
Android Studio sync error Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.android.tools.build:gradle:3.6.3.Android 2020. 6. 4. 02:36
Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2) 위와 같은 메시지 이거나 classpath 'com.android.tools.build:gradle:3.2.1' gradle 버전 3.2.1로 올린 후 sync 시 에러가 난다면 buildscript { repositories { maven { url 'https://dl.google.com/dl/android/maven2' } jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.6.3' } } jcenter() 위에 maven { url 'https://dl.goog..