gpt4 book ai didi

java - 错误 : package com. google.android.gms.games 不存在

转载 作者:行者123 更新时间:2023-11-30 02:03:30 24 4
gpt4 key购买 nike

我的导入是:

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'

那么关于我做错了什么有什么想法吗?

最佳答案

您必须导入 google-play-services_lib 作为项目的库。您可以在以下路径找到它:

<your-android-sdk-directory</extras/google/google_play_services/libproject/google-play-services_lib

参见 this指南

关于java - 错误 : package com. google.android.gms.games 不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31122734/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com