Android Studio DexIndexOverflowException: method ID not in

前端 未结 8 1805
长情又很酷
长情又很酷 2020-12-04 13:56

I use Android Studio to develop an application and I face this error which I have no idea how to solve.

com.android.dex.DexIndexOverflowException: met

8条回答
  •  时光取名叫无心
    2020-12-04 14:41

    Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'.

    com.android.build.api.transform.TransformException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536

    Latest version com.android.support:multidex:1.0.3 worked for me!

    dependencies {
      compile 'com.android.support:multidex:1.0.3'
    }
    

提交回复
热议问题