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'
    }
}


+ Recent posts