I think many novices using AndroidStudio will run into the following problem the first time they start a new project:
[problem description]
for this problem, I think if I don’t know the solution, I will install the relevant plug-in
as shown in the following diagram
well, I’m not going to say any more nonsense about this kind of problem and I’m going to go straight to my solution, which is
[solution]
1. Click on the File – & gt; Settings appear as shown below
and then let’s look at the bottom red line that I drew, these two represent our SDK model and Android API version
2. We switch our process items from Android– > Project, then click builde.gradle
in the red line box as shown below
appears as follows
what I’m drawing in the figure above is the thing that we’re going to change because we just saw that our SDK version is 26 so we just change the red line from 27 to 26 in the figure like this
then click Try Again as shown above. Wait a moment, and the problem will be solved.
and then we’re done. Isn’t that easy?If you need more learning resources, please pay attention to the public number in the upper left corner.
p>
p>
p>
p>
Read More:
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- 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
- AppCompat does not support the current theme features
- Failed to resolve: com.github
- failed to resolve:com.github.********
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- 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
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- Android studio failed to resolve: junit:junit : 4.12 solutions
- Failed to load AppCompat ActionBar with unknown error
- android studio:Error inflating class android.support.v4.widget.SwipeRefreshLayout
- Error: package android.support.annotation Does not exist
- [Solved] Resource style/Theme.AppCompat.Light.NoActionBar failed linking
- ADT:v22.6.2-1085508 Creating Android project and creating appcompat automatically_ V7 solution