在我的应用程序模块(取决于我的后端端点模块)中,我有以下内容
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/