gpt4 book ai didi

android - 为什么 Maven Central 上的 Android 版本不包含 Google Apis( map )?

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:27:38 26 4
gpt4 key购买 nike

Most of the jars of Android SDKs are now in maven central ,但没有任何 SDK 的 Google Api 版本。你知道为什么吗 ?添加它们有什么限制吗?

更新:我不是在寻找解决方法 (like adding them locally to my repo)。

最佳答案

Android SDK EULA禁止:

1.1 The Android Software Development Kit (referred to in this License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. This License Agreement forms a legally binding contract between you and Google in relation to your use of the SDK.

... ...

3.3 You may not use the SDK for any purpose not expressly permitted by this License Agreement. Except to the extent required by applicable third party licenses, you may not: (a) copy (except for backup purposes), modify, adapt, redistribute, decompile, reverse engineer, disassemble, or create derivative works of the SDK or any part of the SDK; or (b) load any part of the SDK onto a mobile handset or any other hardware device except a personal computer, combine any part of the SDK with other software, or distribute any software or device incorporating a part of the SDK.

方法Android for Maven使用的是从源代码编译 android.jar 并提取源文件和资源文件以在 SDK 中复制 android.jar。如您所见,对于某些源代码较近的 Google API 插件(例如 map ),这显然是不可能的。

好消息是 Android 团队开始重新发明构建系统(更多详细信息在 here ),希望关闭源 jar 将由 Android 团队在中央存储库中得到照顾和管理,请参阅 Manfred 的回复 here .

关于android - 为什么 Maven Central 上的 Android 版本不包含 Google Apis( map )?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13547469/

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