谷歌App Engine的摇篮依赖冲突 [英] Google App Engine Gradle Dependency Conflict
问题描述
我现在面临与我在我的应用程序依赖关系的问题,不会让我补充我的端点后端
模块作为一个依赖于我的应用
模块,像这样:
I'm facing a problem with my dependencies in my app that will not let me add my endpoints-backend
module as a dependency to my app
module like so:
当我编译,它给了我这个错误:
When I compile, it gives me this error:
错误:执行失败的任务:应用程序:preDexDebug。 > com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:过程'命令'/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java''非零退出值完3
Error:Execution failed for task ':app:preDexDebug'. >com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java'' finished with non-zero exit value 3
当我删除端点后端
相关性,程序运行,但我需要它作为一个依赖,所以我可以访问我的MainActivity内的端点code。
When I remove the endpoints-backend
dependency, the program runs, but I need it as a dependency so I can access the endpoints code inside my MainActivity.
下面是我的摇篮
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.blume.android"
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile project(path: ':endpoints-backend', configuration: 'android-endpoints')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services:6.5.87'
compile project(path: ':cloud-backend', configuration: 'android-endpoints')
compile 'javax.persistence:persistence-api:1.0'
compile project(':endpoints-backend')
}
所有帮助是AP preciated!
All Help is appreciated!
推荐答案
您应该删除此行:
compile project(':endpoints-backend')
您有它这里包括:
compile project(path: ':endpoints-backend', configuration: 'android-endpoints')
这篇关于谷歌App Engine的摇篮依赖冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!