如何从 google play services lib 只导入一个包

Posted

技术标签:

【中文标题】如何从 google play services lib 只导入一个包【英文标题】:How to import only one package from google play services lib 【发布时间】:2019-09-29 02:50:38 【问题描述】:

喜欢标题:

我在eclipse中开发一个android应用,不想导入google play services_lib的所有库。

有没有办法只导入我需要的一个包?这样做是否合法? (因为我读到这些库是不可修改的)。

【问题讨论】:

【参考方案1】:

首先请使用 Android Studio。 是的,单独使用这些库是绝对合法的。

Here you can find them all.(个人)

【讨论】:

感谢您的回答。我在运行 Android Studio 时遇到问题,在 Eclipse 中无法解决? @رشيدرشيد 如果您在运行 AS 时遇到问题,请提出另一个问题。也许你会得到答案如何运行它。

以上是关于如何从 google play services lib 只导入一个包的主要内容,如果未能解决你的问题,请参考以下文章

如何为项目使用不同版本的 google-play-services 库

找不到从 Google Play Services Util 引用的类

找不到 google-play-services_lib 的库参考 Lib\Copy

谷歌地图修订版。 30 日食用法:google_play_services_version

升级到 Google Play 服务:9.0.0 错误无法解决:com.google.android.gms:play-services-measurement:9.0.0

我该如何解决?建议:使用 tools:overrideLibrary="com.google.android.gms.play_services" 强制使用