Known Issue
If you run into the following issue: "More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro'", please put the following in your gradle file as a temporary workaround while we fix the issue in alpha10:
AndroidX 버전 alpha10 오류라는데 아직도(지금 2.0.0아닌가) 해결이 안되었다
해결법은 간단하다
build.gradle(app) 파일에 아래와 같이 추가해주면 된다.
packagingOptions {
exclude 'META-INF/proguard/androidx-annotations.pro'
}
* 전체적으로 보면 이렇게
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.sjuu.appid"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/proguard/androidx-annotations.pro'
}
}
'Android > 글' 카테고리의 다른 글
| [Android] Java 가 설치되어 있는지 확인하고 싶을때!! (0) | 2018.12.22 |
|---|---|
| [Android] adb.exe 파일의 위치는? (0) | 2018.12.22 |
| [Android] All com.android.support libraries must use the exact same version specification 오류 해결법 (0) | 2018.12.07 |
| [Android] AndroidX 리팩토링에 관해 (0) | 2018.12.06 |
| [Android] Gradle에 추가 가능한 각종 구글 라이브러리 리스트 (0) | 2018.12.05 |