相关疑难解决方法(0)

Java以非零退出值2完成 - Android Gradle

我在执行我的Android应用程序时遇到此错误(我清理它然后构建它,但错误仍然存​​在)

  • 同步:好的
  • 制作项目:好的
  • 清洁:好的
  • 运行:错误

错误:任务执行失败':app:dexDebug'.com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令'C:\ Program Files\Java\jdk1.7.0 _25\bin\java.exe''以非零退出值2结束

我的gradle文件:

apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
    applicationId "com.rzr.rzevallosr.miappdepruebas"
    minSdkVersion 19
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

productFlavors {
}

repositories {
    mavenCentral()
    flatDir {
        dirs 'libs'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

// This library handles authentication and authorization
compile 'com.spotify.sdk:spotify-auth:1.0.0-beta9@aar'
// This library handles music playback
compile 'com.spotify.sdk:spotify-player:1.0.0-beta9@aar' …
Run Code Online (Sandbox Code Playgroud)

android gradle asp.net-web-api build.gradle

134
推荐指数
8
解决办法
13万
查看次数

标签 统计

android ×1

asp.net-web-api ×1

build.gradle ×1

gradle ×1