【发布时间】:2016-03-15 16:01:34
【问题描述】:
我想将 Google 库添加到我在 Android Studio 中的项目 libgdx 中。目前我已经完成了:
- 打开 SDK 管理器并从 SDK 管理器下载播放服务,
- 在
build.gradle中添加了compile字符串:
compile 'com.google.android.gms:play-services:8.4.0'
- 点击
File -> Project Structure -> choose the project并添加库play-services 8.4.0。
当我执行sync 时,它给了我这个错误:
如果我点击Install and sync repository project 会出现错误,这是:
另一个测试:
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.InterstitialAd;
如果您手动添加此库,在列出的所有步骤之后...我无法识别它们并且总是失败。我该如何添加?谢谢。
也尝试Add Google Play Services我的项目,但没有成功:(
我的目标是使用 AdMob 横幅。
【问题讨论】:
-
单击“安装存储库并同步项目”时出现什么错误?
-
给我的错误是它找不到 sdk,不过,我向你保证。
-
我添加了点击“安装存储库和同步项目”时的错误
标签: android android-studio libgdx admob google-play-services