method ID not in [0, 0xffff]: 65536

xiaoxiao2021-02-27  462

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536

解决方案:gradle 中加入 multiDexEnabled true

defaultConfig { applicationId "" minSdkVersion targetSdkVersion versionCode 1 versionName "" multiDexEnabled true }

转载请注明原文地址: https://www.6miu.com/read-4809.html

最新回复(0)