我试图在调试模式下运行该应用程序,但出现以下错误:Error:Execution failed for task ':app:dexDebug'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_11\bin\java.exe'' finished with non-zero exit value 2以下是我的build.gradle文件:buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' }}apply plugin: 'com.android.application'apply plugin: 'io.fabric'apply plugin: 'idea'repositories { maven { url 'https://maven.fabric.io/public' }}android { compileSdkVersion 21 buildToolsVersion '21.1.1' defaultConfig { applicationId 'com.rayat.pricewiz' minSdkVersion 17 targetSdkVersion 21 versionCode 1 versionName '1.0' } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' multiDexEnabled true } } productFlavors { }}android { packagingOptions { exclude 'META-INF/notice.txt' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE.txt' } dexOptions { jumboMode = true javaMaxHeapSize "4g" }}任何人都可以帮忙,因为这个错误使我发疯。我的代码达到了65k的限制,因此我添加了multiDexEnabled选项。
4 回答
肥皂起泡泡
TA贡献1829条经验 获得超6个赞
The android.dexOptions.incremental property is deprecated and it has no effect on the build process.
因为凡试试这个
- 4 回答
- 0 关注
- 1705 浏览
添加回答
举报
0/150
提交
取消