2016-02-12 94 views
1

我更新谷歌的谷歌玩遊戲服務如下所述:unity plugin,但我有以下錯誤:團結,依賴錯誤導入谷歌Play遊戲服務

Google.JarResolver.ResolutionException: Cannot find candidate artifact for com.google.android.gms:play-services-games:8.4+ at Google.JarResolver.PlayServicesSupport.DependOn (System.String group, System.String artifact, System.String version) [0x00000] in :0 at GooglePlayGames.Editor.GPGSDependencies..cctor() [0x00024] in /Users/gabriele/Documents/number777pro/number/Number777/Assets/GooglePlayGames/Editor/GPGSDependencies.cs:46 UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

我試圖找到一個解決方案,但沒有成功,誰知道如何解決?

+1

您需要通過Android SDK Manager更新Google Repository和Android Support Repository組件。 –

+0

我做到了,我也嘗試重新下載android sdk,但它沒有解決錯誤 –

+0

hi @GabrielePicco,你真的應該在下面給出答案! – Fattie

回答

11

它是由更新以下內Android SDK中的經理來解決:1。 支持Android庫 2.谷歌播放服務 3.谷歌庫


FYI 在Mac上...

轉到您的Android工具目錄這很可能是在這裏..

cd /Users/ ... /Library/Android/android-sdk-macosx/tools

並運行此

./android update sdk --no-ui

它會安裝一個非常大的數字下載(30分鐘),包括它看起來像你需要解決此問題的一切。

... 
    Downloading Local Maven repository for Support Libraries, revision 28 
    Installing Local Maven repository for Support Libraries, revision 28 
    Installed Local Maven repository for Support Libraries, revision 2899%) 
    Downloading Google Play services, revision 29 
    Installing Google Play services, revision 29 
    Installed Google Play services, revision 2996%) 
    Downloading Google Repository, revision 25 
    Installing Google Repository, revision 25 
    Installed Google Repository, revision 2599%) 
... 
    Done. 34 packages installed. 

如果您是Unity-Mac用戶,可能是您沒有安裝Android Studio,而只是安裝了各種SDK。通過這種方式,您可以輕鬆地進行更新,而無需像Studio那樣煩惱。反之,如果你只是運行

./android

它會打開不斷得心應手AndroidSDKManager(即你的Mac上運行的實際GUI應用程序)。然後,您可以這樣做,如果您確切知道要安裝Play Services的內容,可能需要保存一些下載內容。請注意,幸運的是,SDKManager可以獨立運行(沒有你的Mac上的java),無需啓動Studio。

希望它可以幫助別人。

+0

感謝它的工作。 – atifali