problem scenario:
after the Android Studio version upgrade, the normal project before Build failed (the project compiled normally with version 2.2.3 failed to compile with version 4.0.1 Studio).
error as follows:
Failed to resolve: Com. Android. Support: appcompat – v7:25.3.0 span>
Add Google Maven repository and sync project span>
Show in the project Structure dialog span>
Affected Modules: span> app
add Google maven repository
as prompted
click on Add Google Maven repository and sync project, then open the project build.gradle file
Add
in build.gradle as follows:
allprojects {
repositories {
jcenter()
maven{url "https://maven.google.com"}
}
}
add maven{url “https://maven.google.com”} and then synchronize the project to resolve the error.
Read More:
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Failed to resolve: com.android.support:appcompat-v7:27.
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error
- [error log] 27.1.0 series of errors Error:Failed to resolve: com.android.support :support-an notations:27.1.0
- Android project error: could not resolve com.android.support .c onstraint:constraint-layout :2.0.2.
- Android studio failed to resolve: com.github.CymChad :BaseRecyclerViewAdap terHelper:2.9.46
- Failed to resolve: com.github
- failed to resolve:com.github.********
- Android studio failed to resolve: junit:junit : 4.12 solutions
- AppCompat does not support the current theme features
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- Failed to load AppCompat ActionBar with unknown error
- Failed to resolve: com.se renegiant:common 1.5.20
- Failed to resolve:com.github.xxx error
- Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process D:\….\0.jar
- [Solved] Resource style/Theme.AppCompat.Light.NoActionBar failed linking
- Error: package android.support.annotation Does not exist
- android studio:Error inflating class android.support.v4.widget.SwipeRefreshLayout
- ADT:v22.6.2-1085508 Creating Android project and creating appcompat automatically_ V7 solution