Information:Gradle tasks [:app:assembleDebug] Error:Execution failed for task ':app:transformClasses

来源:互联网 发布:nginx lua 添加头部 编辑:程序博客网 时间:2024/05/16 00:29

问题:

Information:Gradle tasks [:app:assembleDebug]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]: 65536Information:BUILD FAILEDInformation:Total time: 19.165 secsError:FAILURE: Build failed with an exception.* What went wrong: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* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.Information:2 errorsInformation:0 warningsInformation:See complete output in console

解决办法需要对jar加载进行拆分配置:一下可以看一下jar包拆分的过程:

MultiDex的配置与注意事项

请大家好好观看

0 1
原创粉丝点击