[Android][Debug] Program type already present: org.intellij.lang.annotations.Identifier
2019. 4. 24. 14:14ㆍPrograming/Debugging
[Problem]
Program type already present: org.intellij.lang.annotations.Identifier
[Root Cause]
Normally, it's caused by duplicated between below and some libraries.
implementation 'org.jetbrains:annotations-java5:15.0'
[Solution]
configurations {
cleanedAnnotations
compile.exclude group: 'org.jetbrains' , module:'annotations'
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "com.bareum_sw.newscollector"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
shrinkResources true
}
}
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}
configurations {
cleanedAnnotations
compile.exclude group: 'org.jetbrains' , module:'annotations'
}
}
'Programing > Debugging' 카테고리의 다른 글
안드로이드 6.0의 ConnectivityManager.requestNetwork (0) | 2019.05.03 |
---|---|
[안드로이드] gradle - minifyEnabled 와 shrinkResources 에 대해 (0) | 2019.04.24 |
[Android Developer Console] Upload failed (0) | 2019.04.17 |
[Android Studio] Android Studio logcat history/buffer size (0) | 2019.03.26 |
[Android 9.0][Debugging] CLEARTEXT communication to XXXX not permitted by network security policy (0) | 2019.03.22 |