Unable to merge dex

前端 未结 30 2684
深忆病人
深忆病人 2020-11-21 22:14

I have Android Studio Beta. I created a new project with compile my old modules but when I tried launching the app it did not launch with the message:

Error:         


        
30条回答
  •  借酒劲吻你
    2020-11-21 23:03

    One of possible root causes: duplicate transient dependencies that weren't properly handled by Android Studio import of multi-module projects. Check your list and remove them. For me, the fix was literally this:

    --- a/project/module/build.gradle
    +++ b/project/module/build.gradle
    @@ -21,5 +21,4 @@ android {
     dependencies {
         implementation project(':upstream-dependency-project')
         implementation 'com.android.support:support-v4:18.0.0'
    -    implementation files('libs/slf4j-android-1.6.1-RC1.jar')
     }
    

提交回复
热议问题