基本上稱謂。在我的代碼gradle這個,這裏的網站:http://developer.android.com/google/play-services/setup.html告訴我把這個在gradle這個文件ANDROID:我正在使用哪種版本的Google Play服務?
compile 'com.google.android.gms:play-services:7.0.0'
然而,這不是一個可行的解決方案,以我的應用程序。我收到錯誤: 錯誤:配置項目':app'時發生問題。
Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.android.support:support-v4:22.0.0. Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar file:/C:/Users/Ryan Folz/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom file:/C:/Users/Ryan Folz/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar file:/C:/Users/Ryan Folz/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom file:/C:/Users/Ryan Folz/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar Required by: GridGame:app:unspecified > com.android.support:appcompat-v7:21.0.3 Could not find com.android.support:support-v4:22.0.0. Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar file:/C:/Users/Ryan Folz/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom file:/C:/Users/Ryan Folz/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar file:/C:/Users/Ryan Folz/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom file:/C:/Users/Ryan Folz/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar Required by: GridGame:app:unspecified > com.google.android.gms:play-services:7.0.0 > com.google.android.gms:play-services-base:7.0.0
我不知道從哪裏開始在這裏做什麼。
任何幫助將是美妙的:)
看起來它告訴你你錯過了支持庫。他們的文檔說在你列出的編譯語句前加上編譯'com.android.support:appcompat-v7:21.0.3'。 – Guardanis 2015-04-01 19:18:33
@Guardanis我將如何去安裝它們? – Kinoscorpia 2015-04-01 19:29:19
只需在輸入的行之前添加我包含的行(它是直接從您鏈接的文檔頁面獲取的),以'compile'開頭 – Guardanis 2015-04-01 20:51:29