根据@P.T.对此的建议question ,为了将 Google IAP(应用内购买)与 Libgdx 链接,我应该将 IInAppBillingService.aidl 和所有其他 util 文件 (TriviaDriveSample.util\files) 放在哪里?我应该将它放在我的主java项目(假设greatGame)还是我的android项目(假设greatGame-android)中?我目前面临集成 Libgdx 和 Google IAP 的问题。
有哪位大师可以带我到目的地吗?
最佳答案
他们都进入了Android项目。例如,这是我的层次结构:
MyGame-Android
..-src
....-com
......-android
........-自动售货机
............-计费
............*IInAppBillingService.aidl
......-我的
........-包
..........-util
............*utilfiles...
.........*MainActivity.java
这是因为要处理 IAP,您需要在 android 项目中使用 android 特定代码,并从核心进行接口(interface)。转到此处了解更多信息:https://github.com/libgdx/libgdx/wiki/Interfacing-with-platform-specific-code
关于java - Libgdx 和谷歌 IAP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20306299/