gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 15:24:47 26 4
gpt4 key购买 nike

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

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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com