com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java‘‘ finished with non-zero exit value 2
解决:
build.gradle中添加:
defaultConfig {
multiDexEnabled true
}
compile ‘com.android.support:multidex:1.0.1‘
application中添加:
@Override
protected voidattachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
文/被风扬起的沙(简书作者)
原文链接:http://www.jianshu.com/p/4ad42a0e98f0
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
Error:Execution failed for task ':app:dexDebug'.
时间: 2024-10-12 13:33:06