gpt4 book ai didi

android - Google Play map ,找不到 com.android.support :support-v4:22. 2.0

转载 作者:行者123 更新时间:2023-11-29 00:08:11 30 4
gpt4 key购买 nike

我的 google map 没有在我的 android studio 上设置!我在这里检查了许多解决方案并遵循了每一个,但仍然没有运气。

它主要来自导致问题的 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

构建 Gradle :

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'
}

最佳答案

您的 build.gradle 是正确的。
只需从 Android SDK Manager 安装这两个 Extras

android sdk manager

关于android - Google Play map ,找不到 com.android.support :support-v4:22. 2.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32290179/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com