Unable to merge dex

前端 未结 30 3172
深忆病人
深忆病人 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 22:54

    [ UNABLE TO MERGE DEX SOLVED ] After hours of stack overflowing I resolved the " UNABLE TO MERGE DEX ERROR "

    1. Update all the com.android.support lines in your gradle to v27.1.0

    Cause - Android has updated it support libraries to v27.1.0, so you have to change all the android support lines in your gradle file to 27.1.0 from 26.1.0

    1. Make sure that the repositories section includes a maven section with the "https://maven.google.com" endpoint. For example:

      allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } }

    Cause :- Android cannot update the support libraries in the SDK manager and now it uses maven.google.com to update , so you have to include this to use 27.1.0 support libraries

    After Change Version: 1. Clean Project 2. Rebuild Project

提交回复
热议问题