Android Studio中build.gradle中"配置:'android-endpoints'"和"配置:'端点'"有什么区别?

Cre*_*eos 5 google-app-engine google-cloud-endpoints android-studio android-gradle-plugin

在我的app模块(取决于我的后端端点模块)中,我有以下内容

dependencies {
    compile project(path: ':backend', configuration: 'android-endpoints')
}
Run Code Online (Sandbox Code Playgroud)

但以下也有效.

dependencies {
    compile project(path: ':backend', configuration: 'endpoints')
}
Run Code Online (Sandbox Code Playgroud)

我看到生成的.jar文件依赖项在前一种情况下在其名称后附加了"android".但是,我怀疑两者之间存在更为根本的区别.有人知道吗?

我在这里找到了以下神秘的参考:https: //github.com/GoogleCloudPlatform/gradle-appengine-plugin 搜索"我如何在另一个项目的端点客户端库上使用编译依赖?" 在FAQ部分.

感谢您的帮助,我希望这不是一个愚蠢的问题.

loo*_*oka 5

android-endpoints 添加一些额外的传递依赖关系到使用端点与android所需的工件,它也删除了一些已经包含在android中的东西.

包括:"google-api-client-android"
排除:"org.apache.httpcomponents:httpclient"

endpoints 只添加"google-api-client"并且不排除任何内容.