gpt4 book ai didi

android - Android Studio:找不到com.android.support:support-v4:22.2.1

转载 作者:行者123 更新时间:2023-12-03 04:52:34 27 4
gpt4 key购买 nike

我的依赖项包括以下内容:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.github.satyan:sugar:1.3.1'
compile 'com.android.support:support-v13:+'
}

并且项目得到很好的编译,但是当我添加以下内容时:
compile 'com.mohamadamin:persianmaterialdatetimepicker:1.2.1'

我收到此错误消息:
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.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/22.2.1/support-v4-22.2.1.pom
https://jcenter.bintray.com/com/android/support/support-v4/22.2.1/support-v4-22.2.1.jar
file:/C:/Users/Navarch/AppData/Local/Android/sdk1/extras/android/m2repository/com/android/support/support-v4/22.2.1/support-v4-22.2.1.pom
file:/C:/Users/Navarch/AppData/Local/Android/sdk1/extras/android/m2repository/com/android/support/support-v4/22.2.1/support-v4-22.2.1.jar
file:/C:/Users/Navarch/AppData/Local/Android/sdk1/extras/google/m2repository/com/android/support/support-v4/22.2.1/support-v4-22.2.1.pom
file:/C:/Users/Navarch/AppData/Local/Android/sdk1/extras/google/m2repository/com/android/support/support-v4/22.2.1/support-v4-22.2.1.jar
Required by:
MyApp:app:unspecified > com.android.support:appcompat-v7:22.1.1
MyApp:app:unspecified > com.android.support:support-v13:22.1.1
> Could not find com.android.support:support-v4:22.2.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/22.2.1/support-v4-22.2.1.pom
https://jcenter.bintray.com/com/android/support/support-v4/22.2.1/support-v4-22.2.1.jar
file:/C:/Users/Navarch/AppData/Local/Android/sdk1/extras/android/m2repository/com/android/support/support-v4/22.2.1/support-v4-22.2.1.pom
file:/C:/Users/Navarch/AppData/Local/Android/sdk1/extras/android/m2repository/com/android/support/support-v4/22.2.1/support-v4-22.2.1.jar
file:/C:/Users/Navarch/AppData/Local/Android/sdk1/extras/google/m2repository/com/android/support/support-v4/22.2.1/support-v4-22.2.1.pom
file:/C:/Users/Navarch/AppData/Local/Android/sdk1/extras/google/m2repository/com/android/support/support-v4/22.2.1/support-v4-22.2.1.jar
Required by:
MyApp:app:unspecified > com.mohamadamin:persianmaterialdatetimepicker:1.2.1

我进行了很多搜索,但似乎无济于事。我该如何解决这个问题?

最佳答案

如果您拥有appcompat-v7:22.1.1,则意味着您应该拥有support-v4:22.1.1。您尝试使用的库正在请求support-v4:22.2.1,这是较新的。

确保您的Android存储库在SDK Manager中是最新的。通常,拥有较旧的 Artifact 而不是较新的 Artifact 意味着您最近没有更新Android Repository。

关于android - Android Studio:找不到com.android.support:support-v4:22.2.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32280728/

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