无法解决:'com.android.support:appcompat-v7'无关紧要 [英] Failed to Resolve: 'com.android.support:appcompat-v7' No Matter What I Do
问题描述
我知道,它看起来像一个副本,但是其他解决方案都无效.我只是从Android Studio切换到了IntelliJ IDEA(因此我不需要3,000个不同的IDE),并且在设置它之后,我创建了一个新项目以测试一切都很好. Gradle构建开始时还可以,但是会引发错误:
I know, it looks like a duplicate, but none of the other solutions out there work. I just switched from Android Studio to IntelliJ IDEA (So I don't need 3,000 different IDE's), and after setting it up, I created a new project just to test everything was good. The Gradle build starts off okay but then it throws the error:
Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:27.0.3
这是一个新鲜的,未编辑的build.gradle
文件.
This is a fresh, stock, not edited build.gradle
file.
在消息中,它为我提供了 Install Repository and sync project
的选项,这就是我的问题开始的地方.不管AppCompat
库是什么版本,IntelliJ都会不断在我脸上拍这个错误.
In the messages, it gives me the option to Install Repository and sync project
, and thats where my problem begins. No matter what version the AppCompat
library is, IntelliJ just keeps slapping this error in my face.
有什么提示吗?
推荐答案
那是因为该库没有27.0.3
.您可能需要27.1.0
或27.0.2
.
That's because there is no 27.0.3
for that library. You probably want 27.1.0
, or perhaps 27.0.2
.
您可以在 https://maven.google.com <上看到不同工件组和工件的版本列表./a>.
You can see the list of versions for the different artifact groups and artifacts at https://maven.google.com.
这篇关于无法解决:'com.android.support:appcompat-v7'无关紧要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!