- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将 Google Analytics(分析)集成到我的 Unity 游戏中。我已经下载并安装了 latest unitypackage .
在 Unity 中单击 Google Analytics > Setup > Install google-play-services_lib
后我收到此错误:
我已经在 Android SDK 管理器中安装了 Google Play 服务,但它没有安装库。甚至包的描述也说它只安装 JavaDoc 和示例代码,没有库:
所以问题是在 /extras/google/google_play_services/
文件夹中根本没有 libproject
子文件夹。只有 JavaDoc 和 Samples 文件夹。
我读过 the documentation (选择 OTHER,因为我既没有使用 Android Studio 也没有使用 Eclipse),按照说明一步一步操作,但它不起作用。我的谷歌搜索是徒劳的。如何安装 google play 服务库?
最佳答案
您是否尝试过检查设置 Google Play Services谷歌文档?
- Open the build.gradle file inside your application module directory.
- Add a new build rule under
dependencies
for the latest version ofplay-services
. For example:
应用插件:'com.android.application'...
依赖关系{编译 'com.google.android.gms:play-services:fp9.0.0'
- Save the changes and click Sync Project with Gradle Files in the toolbar.
Note: If the number of method references in your app exceeds the 65K limit, your app may fail to compile. You may be able to mitigate this problem when compiling your app by specifying only the specific Google Play services APIs your app uses, instead of all of them. For information on how to do this, see Selectively compiling APIs into your executable.
- Copy the library project at
<android-sdk>/extras/google/google_play_services/libproject/google-play-services_lib/
to the location where you maintain your Android app projects.- Import the library project into your Eclipse workspace. Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it.
- In your app project, reference Google Play services library project. See Referencing a Library Project for Eclipse for more information on how to do this.
- After you've added the Google Play services library as a dependency for your app project, open your app's manifest file and add the following tag as a child of the
<application>
element:
关于android - 找不到 google-play-services_lib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37344706/
我已将 google-play-services_lib 导入到我的工作区并将 google 项目添加到 MYProject 中,它给出了 mr 错误: Description Resource Pa
我试图在我的应用程序(admob)中包含谷歌移动广告,所以我遵循了谷歌文档 https://developers.google.com/mobile-ads-sdk/docs/?hl=en 但我在“添
我正在尝试将 Google Analytics(分析)集成到我的 Unity 游戏中。我已经下载并安装了 latest unitypackage . 在 Unity 中单击 Google Analyt
当您尝试将 AdMob 添加到 Android 1.6(Level4) 时,您会收到消息: Could not find method android.view.Display.getRealMetr
我知道 Stackoverflow 中有两篇类似的帖子(this 和 this),但我已经尝试过那里描述的内容,但没有任何结果,我觉得我已经没有选择了。 此屏幕截图来自这两个帖子之一,但正是我所看到的
这是第二天,我一直在与 Eclipse 争吵,试图导入 Google Maps API v2。我尝试了数百种变体,但库或未导入且无法从我的项目访问或无法执行 dex:多个 dex 文件定义 Landr
我已经完成了一个应用程序,它显示了一个引用本教程的谷歌地图 http://www.vogella.com/articles/AndroidGoogleMaps/article.html 该应用程序运行
我一直在努力让一个简单的 map 出现在应用程序中,如 Google Maps v2 文档中所示。 Eclipse 一直在说: 容器“Android Dependencies”引用了不存在的库“X:\
我正在关注 this tutorial在 Android 上实现对 Google Maps V2 的支持。不幸的是,在第二步中我没有选择复制到工作区选项,我删除了带有 \extras\google\g
我刚刚使用 SDK 更新了一些内容并下载了 ADT 的更新。现在我在项目文件夹中看到一个红色感叹号。 控制台告诉我们: Found 2 versions of android-support-v4.j
我正在创建一个 Android 应用程序,该应用程序显示基于 Google map API 的 map ,该应用程序应与 Android 2.3 API 级别 10 兼容。 我已经尝试了我能遇到的所有
当我尝试将一个项目从 eclipse 导入到 Android Studio 时,它向我显示此错误: Project BLE_Sample_Android-master: path/project.pr
将 google-play-services_lib 导入我的工作区,但在所有值文件夹中都出现错误我有干净的项目更改 Google API,添加 google-play-services.jar 文件
我正在尝试通过此链接使用新的 Google Play 服务进行 Google Plus 集成:http://ankitthakkar90.blogspot.sg/2013/05/google-plus
当我启动我的 Android ADT 时,如果不是所有项目,我的大多数项目旁边都会有一个红色感叹号。当我尝试构建和运行它们时,我得到一个错误: “google-play-services_lib] 无
我正在尝试将我的项目从 Eclipse 导入到 AndroidStudio,但出现以下错误 首先,我不明白为什么它不替换 gradle 文件中相应条目的 google play services li
我将 google-play-services_lib 库用于我的一个项目。一切都在 eclipse 中构建得很漂亮。现在我想编写一个 Android.mk 文件来自动构建我的项目。 按照说明 her
我有一个 android 项目,我在其中尝试使用 map 等服务,所以我开始知道我需要使用 google-play-services_lib 库。所以我只是从源 sdk(sdk/extras/goog
使用 http://code.google.com/p/gcm/source/browse/#git%2Fgcm-client 上提供的示例代码,应用程序启动协议(protocol)包含有关缺少 AP
我正在尝试从命令行构建我的 android 应用程序,我有一个脚本 Ant 发布 失败于 BUILD FAILED android-sdk-macosx/tools/ant/build.xml:473
我是一名优秀的程序员,十分优秀!