Android Studio : com.android.ide.common.process.ProcessException:

半城伤御伤魂 提交于 2019-12-02 05:17:01

问题


I'm trying to use ArcGis with Android Studio. I tried to follow these steps

  • https://developers.arcgis.com/android/guide/install-and-set-up.htm

  • http://blogs.esri.com/esri/arcgis/2014/05/20/using-the-arcgis-android-sdk-with-android-studio-part-1/

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'
        }
    }
}

回答1:


It seems like my comments above answered the question.



来源:https://stackoverflow.com/questions/29518323/android-studio-com-android-ide-common-process-processexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!