我的谷歌地圖並不在我的Android工作室成立!我這裏有諸多檢查解決方案,並已按照他們每個人,但仍然沒有運氣。谷歌播放地圖,找不到com.android.support:support-v4:22.2.0
這主要是從GOOGLEPLAY服務和存儲庫的依賴是造成問題的原因。我嘗試了很多解決方案,但沒有奏效。 我將發佈錯誤日誌。
Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.android.support:support-v4:22.2.0. Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.aar file:/P:/Software/Android SDK/extras/android/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom file:/P:/Software/Android SDK/extras/android/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.aar file:/P:/Software/Android SDK/extras/google/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom file:/P:/Software/Android SDK/extras/google/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.aar Required by: demomap:app:unspecified > com.android.support:appcompat-v7:21.0.3 Could not find com.android.support:support-v4:22.2.0. Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.aar file:/P:/Software/Android SDK/extras/android/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom file:/P:/Software/Android SDK/extras/android/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.aar file:/P:/Software/Android SDK/extras/google/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom file:/P:/Software/Android SDK/extras/google/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.aar Required by: demomap:app:unspecified > com.google.android.gms:play-services:7.8.0 > com.google.android.gms:play-services-base:7.8.0 Could not find com.android.support:mediarouter-v7:22.2.0. Searched in the following locations: https://jcenter.bintray.com/com/android/support/mediarouter-v7/22.2.0/mediarouter-v7-22.2.0.pom https://jcenter.bintray.com/com/android/support/mediarouter-v7/22.2.0/mediarouter-v7-22.2.0.aar file:/P:/Software/Android SDK/extras/android/m2repository/com/android/support/mediarouter-v7/22.2.0/mediarouter-v7-22.2.0.pom file:/P:/Software/Android SDK/extras/android/m2repository/com/android/support/mediarouter-v7/22.2.0/mediarouter-v7-22.2.0.aar file:/P:/Software/Android SDK/extras/google/m2repository/com/android/support/mediarouter-v7/22.2.0/mediarouter-v7-22.2.0.pom file:/P:/Software/Android SDK/extras/google/m2repository/com/android/support/mediarouter-v7/22.2.0/mediarouter-v7-22.2.0.aar Required by: demomap:app:unspecified > com.google.android.gms:play-services:7.8.0 > com.google.android.gms:play-services-cast:7.8.0
內建搖籃:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.example.sonyvaio.demomap"
minSdkVersion 16
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services:7.8.0'
}
這兩額外當時你試圖尋找這個庫的解決方案之一? com.android.support:support-v4:22.2.0。 –
你需要通過SDK Manager –
下載Google API Android支持庫谷歌存儲庫發佈你的build.gradle –