- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我关注 https://developers.google.com/games/services/android/init设置排行榜。所以在我的游戏项目中,我设置了 google_play_services 库,因为它已经使用了 AdMob。现在我需要所有 Also BaseGameUtils。但是上面链接中“设置游戏项目”部分中的步骤不起作用。让我说说我做了什么:
BasicSamples/libraries/BaseGameUtils/src/main
,它作为 main
而不是作为 BaseGameUtils
添加到我的项目中。 main
项目,在 Properties->Android
部分选择 Is Library
并在 Properties- 我的游戏项目中>Android
部分添加了对 main
库的引用。 (请注意,如果您不选择 Is Library
,您将无法执行 6. 在 Library 面板中,单击 Add 按钮。 7. 选择 BaseGameUtils。
指示的步骤在教程中)import gms.common.api.*;
import com.google.example.games.basegameutils.BaseGameActivity;
public class MyGameActivity extends BaseGameActivity {
但是这两个导入都不被识别。如何设置这个?这本来应该如此简单,但它是如此令人毛骨悚然吗?
最佳答案
教程中的步骤不完整。以下是实际步骤:
已打开 https://github.com/playgameservices/android-basic-samples并按下“下载 ZIP”或者你也可以克隆 git repo。
然后是Scripts/make_eclipse_compat
(.cmd for Windows)脚本。 cd android-basic-samples;
并运行脚本。它在 Scripts
目录旁边生成 eclipse_compat
。
导入到 eclipse android-basic-samples/eclipse_compat/libraries/BaseGameUtils
而不是下载的原始 BaseGameUtils
。请注意,在这种情况下,在 Eclipse 中,您不会添加 main
项目,而是添加一个名为 BaseGameUtils
的项目。
右键单击 BaseGameUtils
项目转到 Properties->Android
并确保选中 Is Library
并添加 google_play_services
作为引用库。
如果您使用 Facebook SDK 或其他 SDK,那么您可能会遇到这样的冲突:
Found 2 versions of android-support-v4.jar in the dependency list, but not all the versions are identical (check is based on SHA-1........
这是分辨率:Facebook SDK for Android duplicate support library on dependencies
还有
导入 gms.common.api.*;
你应该这样做是错误的:
import com.google.android.gms.common.api.*;
import com.google.example.games.basegameutils.BaseGameActivity;
public class MyGameActivity extends BaseGameActivity {
关于无法安装 Android Play Services Leaderboard (BaseGameUtils),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26442525/
我正在尝试构建一个查询,在其中获得类似排行榜的结果,然后通过 ID 获取特定玩家在排行榜上的位置,并且仅当该玩家 isHere = 'true' (存储在另一个表中)。 表此处: userID |
游戏中心有一个新功能,iTunes Connect。它说: To share leaderboards and achievements of this app with other apps you
有人在尝试将 Game Center 集成到 iOS 7 应用程序时遇到过这个错误吗? A GKScore must specify a leaderboard. 这是失败的代码: if(points
所以我想把排行榜上的分数加到一个表中,但我不知道怎么做。。GitHub:。Https://github.com/Eternal-Network/Eternal-hub/tree/master。要改什么
所以我想把排行榜上的分数加到一个表中,但我不知道怎么做。。GitHub:。Https://github.com/Eternal-Network/Eternal-hub/tree/master。我应该改
如何通过 LuaJIT FFI 将 SteamAPICall_t 与 SteamLeaderboard_t 句柄结合使用? 我用LÖVE2D框架& Steamworks Lua Integration
我关注 https://developers.google.com/games/services/android/init设置排行榜。所以在我的游戏项目中,我设置了 google_play_servi
我正在以编程方式从游戏中心拉取排行榜数据,我想将我的数据查询限制为本地玩家的分数以及高于和低于他的 25 个分数。这可能吗。有没有办法获取本地玩家当前在排行榜中的位置? 最佳答案 调用 [GKLead
我正在尝试让 gamecenter 排行榜正常工作,但卡住了。我正在 Xcode 模拟器上进行测试,因为我无法在设备上登录我们的沙箱帐户。我可以使用 init 函数通过游戏登录沙盒帐户,但排行榜不会显
看起来 iTunes Connect 最近出现了一个问题,它阻止了对现有排行榜的编辑(更改任何细节)。 几天前,iTunes Connect 遇到一个问题,我们无法创建新的排行榜。截至昨晚,iTune
因此,我将分数发送到 GC 排行榜,我没有收到任何错误并且分数已发送,但我仍然没有看到排行榜中列出任何分数!排行榜本身列在 Game Center 中,只是没有分数。 根据谷歌搜索和 question
我正在开发一款支持 Game Center 的游戏,但我在沙盒环境中遇到了问题。我可以顺利报分,没有报错。但是,当我显示排行榜时,看不到任何分数。为了验证分数确实到达那里,我使用以下代码查询本地用户的
我正在编写使用 Swarm 数据库的 Android 游戏。我的问题是它们只允许存储一个变量,而我需要三个。所以我创建了九个排行榜来代表不同的变量集。 当我需要在应用程序中显示分数时,我需要来自所有排
我已经在我的 android 应用程序中实现了 Google LeaderBoard。它在未发布(测试模式)时工作正常,但显示“应用程序配置不正确”。 最佳答案 这可能是在开发期间使用调试 key ,
我有一个问题,帮助我理解主题。老实说,我已经花了几天时间研究这个主题,但还没有奏效。 SpriteKit Swift 3 上有一个简单的游戏。 我正在尝试实现 Leaderboard Game Cen
当我尝试为我的最新应用程序创建第一个排行榜时,我遇到了上述错误。有谁知道如何解决这个错误? 我确实有另一个带有排行榜的应用程序,但这肯定不会影响这个应用程序。作为引用,我正在尝试创建一个排行榜。 最佳
是否可以在通用应用程序中为 iPad 和 iPhone 提供单独的游戏中心排行榜? iPhone 上的游戏中心应用程序应专门显示在 iPhone 上获得的分数。在 iPad 上查看时,它应该只显示 i
我正在尝试使用 Objective-C 将 macOS 游戏与 Apple 的 GameKit SDK 集成。到目前为止,我已经能够验证用户并加载/更新成就,但我在排行榜方面没有取得成功。 尝试 lo
我有一个 Flask 端点函数,它传递每个用户的评分、正分和负分字典,如下所示: leaderDict = { 'users': { '': { 'ra
我正在开发一款使用 Google Play 游戏服务 API 的 Android 应用。我在各个方面都成功实现了排行榜,除了我看不到其他玩家的分数,只显示我自己当前登录玩家的分数。 就好像我的测试用户
我是一名优秀的程序员,十分优秀!