簡體   English   中英

Android Studio導入Google Play服務項目刷新失敗

[英]Android Studio import Google Play Services project refresh failed

目前我正在嘗試為使用Android Studio創建的Android項目導入Google Play服務。 現在,我閱讀了應該從這里開始的部分,因為這個部分仍在使用Eclipse,所以我最終完成了這些步驟。 現在,在我的應用上添加Google Play服務后,我收到一條錯誤消息:

Gradle'MyApp'項目刷新失敗:找不到com.google.android.gms:play-services:5.0.77。 要求:MyApp:myapp:未指定

所以我嘗試更改此行的版本:

編譯'com.google.android.gms:play-services:5.0.77'

成:

compile 'com.google.android.gms:play-services:5.0.+',
compile 'com.google.android.gms:play-services:4+', 
compile 'com.google.android.gms:play-services:4.0.+',

所以,但仍然得到相同的錯誤(只有版本更改)。

至於參考我的Android Studio版本目前是@ 0.5.2(我還無法更新)等級版本0.9。+。

以及Android SDK Manager中安裝的軟件包的屏幕截圖:

在此輸入圖像描述

現在我想知道我的問題究竟在哪里。 此外,我不想下載Google Play服務的JAR文件來解決此問題。 我想堅持在Android Studio中實現此功能的官方方式。 :d

從SDKManager安裝Google Repository 。如果找不到Google Repository ,請從“工具”部分更新SDK ToolsSDK Platform ToolsSDK Build Tools

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM