Android的工作室:com.android.ide.common.process.ProcessException: [英] Android Studio : com.android.ide.common.process.ProcessException:
问题描述
我试图使用ArcGIS与Android工作室。我试图按照这些步骤
-
https://developers.arcgis.com /android/guide/install-and-set-up.htm
-
<一个href="http://blogs.esri.com/esri/arcgis/2014/05/20/using-the-arcgis-android-sdk-with-android-studio-part-1/" rel="nofollow">http://blogs.esri.com/esri/arcgis/2014/05/20/using-the-arcgis-android-sdk-with-android-studio-part-1/
但我面对这个错误:
错误:未能执行任务:应用程序:dexDebug。 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java''完成非零退出值2
我的应用程序结构
应用:build.gradle
//顶级构建文件,你可以到各子项目/模块添加常用的配置选项。
buildscript {
库{
jcenter()
}
依赖{
类路径com.android.tools.build:gradle:1.1.0
//注意:不要在这里放置应用程序依赖;他们属于
//在单个模块build.gradle文件
}
}
allprojects {
库{
jcenter()
//添加下面的ArcGIS库
行家{
URLhttp://dl.bintray.com/esri/arcgis
}
}
}
这似乎是我的上述评论回答了这个问题。
I'm trying to use ArcGis with Android Studio. I tried to follow these steps
but I face this error :
Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
My app structure
app : build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
// Add the following arcgis repository
maven {
url 'http://dl.bintray.com/esri/arcgis'
}
}
}
It seems like my comments above answered the question.
这篇关于Android的工作室:com.android.ide.common.process.ProcessException:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!