Google Cloud Messaging,“ App Engine Java Servlet模块”

问题描述 投票:1回答:0

我一直在密切关注这个Google Cloud示例 (尽管我同时安装了Java和Android Studio的最新版本),并在2.1节中继续遇到此错误:

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.8.0_65\bin\java.exe'' 
finished with non-zero exit value 2

项目结构相同。 我正在运行Windows10。我的最佳猜测是有些.jar文件未编译。 我试图注释掉gradle中的依赖项,但这是行不通的。 我在这里包括了自动生成的build.gradle:

 apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"
defaultConfig {
    applicationId "com.packtpub.googleclouddemo"
    minSdkVersion 13
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.google.android.gms:play-services:8.3.0'
    compile project(path: ':backend', configuration: 'android-endpoints')
}

`

google-app-engine android-studio gradle jar
© www.soinside.com 2019 - 2024. All rights reserved.