gpt4 book ai didi

android - 找不到 com.android.support :design:23. 0.1

转载 作者:行者123 更新时间:2023-11-30 01:40:24 25 4
gpt4 key购买 nike

我无法编译我的 android 项目,我也找不到原因。顺便说一句,该项目在另一台计算机上编译成功。这是我的 build.gradle 文件:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.iba.navdrawer"
minSdkVersion 11
targetSdkVersion 23
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:design:23.0.1'
compile 'com.google.android.gms:play-services-maps:8.3.0'
compile 'com.google.maps.android:android-maps-utils:0.4+'
}

这是堆栈跟踪:

Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.android.support:design:23.0.1.

 Searched in the following locations:
https://jcenter.bintray.com/com/android/support/design/23.0.1/design-23.0.1.pom
https://jcenter.bintray.com/com/android/support/design/23.0.1/design-23.0.1.jar
file:/C:/Program Files/Android/android-sdk/extras/android/m2repository/com/android/support/design/23.0.1/design-23.0.1.pom
file:/C:/Program Files/Android/android-sdk/extras/android/m2repository/com/android/support/design/23.0.1/design-23.0.1.jar
file:/C:/Program Files/Android/android-sdk/extras/google/m2repository/com/android/support/design/23.0.1/design-23.0.1.pom
file:/C:/Program Files/Android/android-sdk/extras/google/m2repository/com/android/support/design/23.0.1/design-23.0.1.jar
Required by:
NavDrawer:app:unspecified

Could not find com.google.android.gms:play-services-maps:8.3.0.

 Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.pom
https://jcenter.bintray.com/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.jar
file:/C:/Program Files/Android/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.pom
file:/C:/Program Files/Android/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.jar
file:/C:/Program Files/Android/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.pom
file:/C:/Program Files/Android/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.jar
Required by:
NavDrawer:app:unspecified

这是我的 sdk 管理器: enter image description here enter image description here

最佳答案

当然是。您正在使用:23.0.1

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:design:23.0.1'
compile 'com.google.android.gms:play-services-maps:8.3.0'
compile 'com.google.maps.android:android-maps-utils:0.4+'
}

您下载了 23.1.1 但 gradle 找不到它。

使用:

dependencies {
compile 'com.android.support:design:23.1.1'
}

或者您应该下载以前的版本使用。

此外,请记住您需要更新您的支持存储库以在 Android Studio 上查找包

当然,就目前而言,最好的方法似乎是更新 SDK Manager 上的所有包

关于android - 找不到 com.android.support :design:23. 0.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34581049/

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