Google Player 遊戲服務錯誤:無法構建示例遊戲 (Google Player Game Service Error: Can't build the sample game)


問題描述

Google Player 遊戲服務錯誤:無法構建示例遊戲 (Google Player Game Service Error: Can't build the sample game)

我無法構建 Google 提供的示例遊戲 TypeANumberChallenge(參見 GitHub)。收到以下錯誤消息:

The project was not built since its build path is incomplete. Cannot find the class file for com.google.android.gms.games.GamesClient. Fix the build path then try building this project

The type com.google.android.gms.games.GamesClient cannot be resolved. It is indirectly referenced from required .class files    MainActivity.java   /TypeANumber/src/com/kerrywei/games/tanc

我確實包含 自述文件Google Play Services Guides,但仍然出現錯誤,無法編譯...

更新:


參考解法

方法 1:

Problem solved by reading Google Play Services Guides

  1. Make a copy of the Google Play services library project. Copy the library project at <android‑sdk>/extras/google/google_play_services/libproject/google‑play‑services_lib/ to the location where you maintain your Android app projects. If you are using Eclipse, import the library project into your workspace. Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it.

You CANNOT use the lib project in SDK folder DIRECTLY... What a joke..

(by KerryKerry)

參考文件

  1. Google Player Game Service Error: Can't build the sample game (CC BY‑SA 2.5/3.0/4.0)

#google-play-games #Android #build-error






相關問題

Google Play 服務登錄錯誤 (Google Play Services sign in error)

Google Player 遊戲服務錯誤:無法構建示例遊戲 (Google Player Game Service Error: Can't build the sample game)

Google Play 遊戲服務無法接受邀請 (Google Play Game Services can't accept invitations)

ITMS-90535 無法發布 libgdx iOS 應用程序 (ITMS-90535 Unable to publish libgdx iOS app)

Google Play 遊戲成就 - 積分不變 (Google Play Games Achievements - Points Not Changing)

玩遊戲服務,我們能知道我們什麼時候通過另一個hiscore嗎? (Play Game Services, can we know when we pass another hiscore?)

Android Google Play 遊戲服務 (Android Google Play Games Services)

為 Google 播放器帳戶存儲自定義數據的免費方式。(安卓,全球定位系統) (Free way to store custom data for a google player account. (Android, GPGS))

Unity Google Play Services Plugin API 與 Show Leaderboard UI 功能不同步? (Unity Google Play Services Plugin API is not sync with Show Leaderboard UI function?)

Android遊戲客戶端,Fragment上未顯示成就解鎖彈出窗口 (Android Game Client, Achievement unlock popup not shown over the Fragment)

我在 google play 上發布的應用程序在用戶下載時會顯示一個 android 文件。我怎樣才能解決這個問題? (My published app on google play shows an android file when users download it. How can i fix this?)

Google Drive Api 已棄用(Google play games -> Saved Games) (Google Drive Api deprecated ( Google play games -> Saved Games ))







留言討論