我的进口商品是:
import com.google.android.gms.games.Games;
import com.google.example.games.basegameutils.GameHelper;
我在Android Studio中收到此错误
error: package com.google.android.gms.games does not exist
error: package com.google.example.games.basegameutils does not exist
Error:(87, 75) error: package GameHelper does not exist
Error:(116, 13) error: cannot find symbol class GameHelper
Error:(122, 28) error: cannot find symbol class GameHelper
Error:(230, 14) error: package Games does not exist
Error:(235, 14) error: package Games does not exist
Error:(242, 41) error: package Games does not exist
Error:(252, 41) error: package Games does not exist
Error:(259, 5) error: method does not override or implement a method from a supertype
Error:(263, 5) error: method does not override or implement a method from a supertype
>Error:Execution failed for task ':android:compileDebugJava'.
> Compilation failed; see the compiler error output for details.
我将BaseGameUtil
作为模块导入,并尝试集成GPSS
我也在使用Libgdx并将gradle更新为
include 'desktop', 'android', 'ios', 'core', 'BaseGameUtil'
所以关于我做错了什么想法?
答案 0 :(得分:1)
您必须将google-play-services_lib导入为项目库。 您可以通过以下路径找到它:
<your-android-sdk-directory</extras/google/google_play_services/libproject/google-play-services_lib
请参阅this指南