Android Studio 3.0 Unable to merge dex

前端 未结 6 2043
遇见更好的自我
遇见更好的自我 2020-12-31 12:13

Just Updated android studio from 2.3.3 to 3.0 now I am having the error

Error:Execution failed for task \':app:transformDexArchiveWithExternalLibsDexMergerFo         


        
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-31 12:40

    In your file build.gradle (Project: XXX), there is this snippet

    buildscript {
        repositories {
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.0.0'                
        }
    }
    

    Previously, that is 2.3.3, then became 3.0.0 when you updated your Android Studio. Try reverting it to 2.3.3 then Resync, then wait for your Android Studio to ask to update your Gradle and gradle plugin to 3.0.0. By this time, no build issues should appear related to Merge Dex.

提交回复
热议问题