google-app-engine - Android Studio中 "configuration: ' android-endpoints '"and "配置: 'endpoints' "in build. gradle有什么区别?

标签 google-app-engine android-studio google-cloud-endpoints android-gradle-plugin

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

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

但以下也有效。

dependencies {
    compile project(path: ':backend', configuration: 'endpoints')
}

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

我在这里找到了以下神秘引用: https://github.com/GoogleCloudPlatform/gradle-appengine-plugin 搜索“如何在另一个项目的端点客户端库上使用编译依赖项?”在常见问题解答部分。

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

最佳答案

android-endpoints 向工件添加了一些额外的传递依赖项,这些依赖项是使用 android 端点所需的,它还删除了一些已经包含在 android 中的。

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

endpoints 只添加“google-api-client”,不排除任何内容。

关于google-app-engine - Android Studio中 "configuration: ' android-endpoints '"and "配置: 'endpoints' "in build. gradle有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25589041/

相关文章:

Android Studio 构建失败

java - 如何从云端获取当前登录的gmail用户?

ruby-on-rails - 如何从谷歌计算引擎连接到 Rails 控制台

java - 从 App Engine 应用程序向 Google 云打印提交打印作业

Android-studio 模拟器构建失败/Android 资源链接失败

java - 在 Android 中集成 Google Plus SignIn 显示意外对话框

android - Objectify+Eclipse+生成云端点客户端库: "Variable does not conform to style guide"

android - 如何通过 Android 应用程序访问应用程序引擎数据存储区?

java - 按列表过滤 - Objectify

python - Google Cloud App Engine 灵活的 Python 2.7 环境错误启动新线程