使用google端点客户端库构建Android库(aar)

使用google端点客户端库构建Android库(aar),android,google-app-engine,android-gradle-plugin,aar,Android,Google App Engine,Android Gradle Plugin,Aar,我正在尝试为我的应用程序创建一个android库。 我的库包含一个后端项目 我的android库的Gradle android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName "0.0.3" } buildTypes { release {

我正在尝试为我的应用程序创建一个android库。 我的库包含一个后端项目

我的android库的Gradle

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "0.0.3"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
productFlavors {
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(path: ':xxx_Backend', configuration: 'android-endpoints')

}
我已经把这个图书馆推到了maven central

然而,当我在android应用程序中访问这个库时,我得到以下错误:

java.lang.NoClassDefFoundError:xxxx_backend.xxxxapi.model.xxDS
Android应用程序gradle:

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
    applicationId "in.test.bankdemo"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'xxxsdk:app:0.0.3'
}
请让我知道如何解决这个问题。我尝试过法塔尔和制作罐子,但似乎没有任何效果