问题详述
集成推送Android SDK后构建项目错误:”failed for task ‘:app:transformClassesWithDexForDebug’”
在集成推送Android SDK后APP报构建错误:
Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_05\bin\java.exe'' finished with non-zero exit value 2
问题解答
以上问题很有可能是因为方法数超过了65535导致的,请在build.gradle中尝试添加如下配置:
defaultConfig {
multiDexEnabled true
}
文档内容是否对您有帮助?