android-studio - Android Studio:Gradle Executin失败,并发生dexDebug错误

标签 android-studio gradle dex

我遇到了以下dexDebug错误。我不能解决这个问题。

错误:任务':sampleApplication:dexDebug'的执行失败。

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/opt/java/jdk1.8.0_60/bin/java'' finished with non-zero exit value 2



注意:我什至在我的build.gradle中检查了我的依赖项。没有重复的值。

最佳答案

试试这个

defaultConfig { multiDexEnabled true }

关于android-studio - Android Studio:Gradle Executin失败,并发生dexDebug错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35012208/

相关文章:

android - 多个构建风格的 applicationId list 占位符不起作用

java - 尝试在 Android 上运行时无法处理,索引时出错

android-studio - 为什么我的应用程序在我的代码没有任何错误后崩溃?

android - 安装错误 : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED? 安装失败

git - 无法确定Java版本,Android Studio,Ubuntu 14.04

java - 构建我的项目时出现 StackOverflowError

android - 旧 Android 版本中的 Dex 方法计数限制

android - System.out.print with//打印代码 Blue。这是什么意思?

java - "Cannot find symbol variable BuildConfig"有多个源文件夹

gradle - Neo4j "No dependency satisfies type class org.neo4j.kernel.api.index.SchemaIndexProvider"