Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
804 views
in Technique[技术] by (71.8m points)

gradle - Failed to Resolve: 'com.android.support:appcompat-v7' No Matter What I Do

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

This is a fresh, stock, not edited build.gradle file.

annoying message

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.

Any tips?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

That's because there is no 27.0.3 for that library. You probably want 27.1.0, or perhaps 27.0.2.

You can see the list of versions for the different artifact groups and artifacts at https://maven.google.com.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...