簡體   English   中英

Google App Engine Gradle依賴沖突

[英]Google App Engine Gradle Dependency Conflict

我在我的應用程序中遇到依賴項問題,這使我無法將endpoints-backend模塊作為依賴項添加到我的app模塊中,如下所示:

依賴

當我編譯時,它給了我這個錯誤:

錯誤:任務':app:preDexDebug'的執行失敗。 > com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:處理'command'/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java''用非零退出值3結束

當我刪除endpoints-backend依賴項時,程序將運行,但是我需要將其作為依賴項,以便可以訪問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')
}

感謝所有幫助!

您應該刪除以下行:

compile project(':endpoints-backend')

您將其包含在此處:

compile project(path: ':endpoints-backend', configuration: 'android-endpoints')

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM