android 中添加 Google Play Game Services 功能 1
2014-02-21 16:01
393 查看
第一步
https://developers.google.com/games/services/android/quickstart 根据里描述的步骤
先 更新android sdk Extras 里的Google
Play services 到最新版本 否则找不到com.google.android.gms.common.api 这个包
然后就可以导入 sdk目录里的 android-sdk\sdk\extras\google\google_play_services\libproject\google-play-services_lib 了
第二步
https://github.com/playgameservices/android-samples 下载这个项目源码
导入里面的 eclipse_compat/libraries/BaseGameUtils
再导入里面的 eclipse_compat\TypeANumber
第三步
在google play 开发者账号里 创建 Google Play Game Services游戏
点游戏服务 创建一个新的 在关联的应用里会让你绑定一个应用 你得先添加一个应用 记得打上签名
之后 就可已选则添加的这个应用 了
添加完成后 会看到 给了一个应用id 在TypeANumber 项目的
的 res/values/ids 里 <string name="app_id">应用id</string>
第四步
在测试里绑定一个账号
就可以运行了
https://developers.google.com/games/services/android/quickstart 根据里描述的步骤
先 更新android sdk Extras 里的Google
Play services 到最新版本 否则找不到com.google.android.gms.common.api 这个包
然后就可以导入 sdk目录里的 android-sdk\sdk\extras\google\google_play_services\libproject\google-play-services_lib 了
第二步
https://github.com/playgameservices/android-samples 下载这个项目源码
导入里面的 eclipse_compat/libraries/BaseGameUtils
再导入里面的 eclipse_compat\TypeANumber
第三步
在google play 开发者账号里 创建 Google Play Game Services游戏
点游戏服务 创建一个新的 在关联的应用里会让你绑定一个应用 你得先添加一个应用 记得打上签名
之后 就可已选则添加的这个应用 了
添加完成后 会看到 给了一个应用id 在TypeANumber 项目的
的 res/values/ids 里 <string name="app_id">应用id</string>
第四步
在测试里绑定一个账号
就可以运行了
相关文章推荐
- unity android 退出异常 google play game services
- google-play-services_lib添加不成功的解决方案
- google-play-services_lib添加不成功的解决方案
- 接入环信 easeUI 报错 fail to resolve 'com.google.android.gms:play-services-base:11.4.0'
- Google Play Services to Beat Android Fragmentation
- 运行Android studio报错com.google.android.gms:play-services-appindexing:8.1.0
- ResolutionException: Cannot find candidate artifact for com.google.android.gms:play-services-ads-lite:[10.2.4]
- 基于cocos2dx,在android的游戏中加入google play game排行榜。
- Google Play Game Services LeaderBoard
- 在Android虚拟机中安装GooglePlayServices
- google play game services unity plugin
- Android:Google Play services and OAuth Identity Tools
- Android:New Google Maps Android API now part of Google Play services
- 有关Android Studio的问题Error:Failed to find: com.google.android.gms:play-services:6.1.71
- Android一点 精简google-play-services.jar
- Google Map Android v2的申请key加导入google-play-services_lib方法 new!
- 在创建android + googlemap时应检查手机是否有Google Play services APK
- google-play-services_lib 添加,google-play-services_lib 这个文件夹在哪里,admob
- Android基于google-play-services-vision:8.1.0实现动态人脸检测
- 基于Google提供play-services:9.8.0的Google 地图开发,适用于Activity、Fragment,并实现添加Marker和根据经纬度显示运动轨迹