gpt4 book ai didi

android - 尝试构建一个应用程序,每次与 Gradle 同步时,我都会遇到相同的 3 个错误

转载 作者:行者123 更新时间:2023-11-30 02:05:58 31 4
gpt4 key购买 nike

一个说,错误:配置项目“:app”时出现问题。

Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find com.android.support:appcompat-v7:21.1.2.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.jar

file:/C:/Users/Richard/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.pom
file:/C:/Users/Richard/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.jar
file:/C:/Users/Richard/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.pom
file:/C:/Users/Richard/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/21.1.2/appcompat-v7-21.1.2.jar
Required by:
MyApplication:app:unspecified

还有一个说:

Error:(28, 13) Failed to resolve: com.android.support:appcompat-v7:21.1.2
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

最佳答案

Appcompat v 21.1.2 不存在。

检查 here发布。

您可以使用:

您可以使用其中之一:

compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.android.support:appcompat-v7:22.1.0'
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:appcompat-v7:21.0.2'
compile 'com.android.support:appcompat-v7:21.0.0'

关于android - 尝试构建一个应用程序,每次与 Gradle 同步时,我都会遇到相同的 3 个错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30654992/

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