Android Studio 3.0 Unable to merge dex

前端 未结 6 2061
遇见更好的自我
遇见更好的自我 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:39

    My issue was fixed by changing the minimal SDK to 16 and target SDK to 25, and adding multidexenabled=true in default.config. Add the follwing to in app/build.gradle:

    compile 'com.android.support:appcompat-v7:25.+'
    compile 'com.android.support:design:25.+'
    

提交回复
热议问题