Development issue/problem:

I have installed ALL Extra and SDK API 21-22, including the replacement of
compileSdkVersion 22 by 21
buildToolsVersion ‘22.0.1’ by 21.1.2, but it is wrong.

And some problems with the API 22 rating, and I changed it to

How can I solve this problem?

Solution 1:

This is the right version to add to your build.gradle according to your API needs.

API 24 :

Implementation com.android.support:appcompat-v7:24.2.1Implementation com.android.support:recyclingerview-v7:24.2.1.

API 25 :

Implementation com.android.support:appcompat-v7:25.4.0Implementation com.android.support:recyclingerview-v7:25.4.0.

API 26 :

Implementation of normecom.android.support:appcompat-v7:26.1.0. Implementation of the normecom.android.support:recyclingerview-v7:26.1.0.

API 27 :

Implementation com.android.support:appcompat-v7:27.1.1Implementation com.android.support:recyclingerview-v7:27.1.1.

Solution 2:

For this to work, I had to install it:

Compilation (com.android.support: support-v4: 22.2.0)
Compilation (com.android.support: appcompat-v7: 22.2.0)
Compilation (com.android.support: support annotations: 22.2.0)
Compilation (com.android.support: recycleerview-v7: 22.2.0)
Compilation (com.android.support: design: 22.2.0)

Compile (com.android.support: design: 22.2.0″)

The documentation says otherwise (documents) :

com.android.support: support design: 22.0.0

Solution 3:

The true path for auxiliary storage libraries:

Give here a description of the image

  1. You must download the libraries from the Support Repository.

If the problem persists:

  1. Go to the current path to the libraries in your support repository and make sure the following folder is present:

ANDROID_SDK_DIRECTORYextrasandroidm2repositorycomandroid support

This folder contains support libraries that cannot be found. For example,
:

ANDROID_SDK_DIRECTORYextrasandroidm2repositorycomandroidsupportappcompat-v7

  1. Open the appcompat-v7 folder and you will see folders with all available versions. You should only use one of these versions, depending on the build.gradle file, or z. B. + use. 18.0.+

dependencies [
compiling fileTree(dir: ‘libs’, include: [‘*.jar’])
compiling ‘com.android.support:appcompat-v7:18.0.+’
compiling ‘com.android.support:gridlayout-v7:23.1.1’
compiling ‘com.android.support:support:v4:23.1.1’
}

This is the path to the grad.build dependency file:

com.android.support: appcompat-v7:18.0.0

Refer to the actual path on your hard drive ->

ANDROID_SDK_DIRECTORYextrasandroidm2repositorycompositorycompat-v718.0.0

If this folder does not exist, you will receive an error message:

couldn’t fix com.android.support: appcompat-v7:18.0.0.

p.s. If you have Windows x64, make sure there are no Program Files(86) in the installation path when installing sdk and jdk. The square brackets added by Windows may cause additional problems in resolving paths for your project. Use simple paths to the installation folder.

For example:

c:androidSDK

Solution 4:

Can’t find: com.android.support:appcompat-v7:22.0.0.

Answer, I’ve tried literally everything:

This problem also occurs if you don’t have an updated Android support library and repository. Just install it via the SDK Manager.

Solution No 5:

Together with the other proposed solutions, ensure that the project/design

all projects {
repositories {
jcenter()
maven {
url https://maven.google.com
}
}
}

Solution No 6:

in support libraries you must always add three digits as the version number

Assuming that for 22 -> you have to write it as 22.0.0 instead of just 22

for 22.1 -> 22.1.0

So your outbuildings have to look like this.

compile ‘com.android.support:appcompat-v7:22.0.0’
compile ‘com.android.support:support-v4:22.0.0’
compile ‘com.android.support:cardview-v7:22.0.0’
compile ‘com.android.support:recyclingerview-v7:22.0.0

I speak the language of the programmers, you have to reserve extra zeros.

I hope this solves your problem.

Solution No 7:

I’ll solve the problem.

Change 22.0.0 to 21.0.3

Dependencies {

compile fileTree(dir: ‘libs’, include: [‘*.jar’]).

//compile ‘com.android.support:appcompat-v7:22.0.0’.

compile ‘com.android.support:appcompat-v7:21.0.3’ }.

I downloaded com.android.support:appcompat-v7:21.0.3, but I did not get the ‘com.android.support:appcompat-v7:22.0.0’ compilation.

If I use SDK Manager to update my support library and support the repository, the problem is solved.

Solution No 8:

NOTE1 : All com.android.support libraries must use the same version specification (mixed versions can lead to runtime errors).

NOTE 2 : The supporting library may not use any version other than the dkVersion compilation.

For API 28 you can use :

com.android.support:appcompat-v7:28.0.0-alpha1
Version com.android.support:recyclingerview-v7:28.0.0-alpha1.

https://mvnrepository.com/artifact/com.android.support/appcompat-v7/28.0.0-alpha1
https://mvnrepository.com/artifact/com.android.support/recyclerview-v7/28.0.0-alpha1

All supporting libraries: https://mvnrepository.com/artifact/com.android.support

Solution No 9:

It is easier to use the + sign in the version number. For example

compile ‘com.android.support:support-v4:22.0.+’
compile com.android.support:appcompat-v7:22.0.+

In this case it is not necessary to change versions for the same API number.

Solution No 10:

Go to Messages Reset Synchronization, click Install Archive and synchronize the project. It installs the required file in the Android SDK and after synchronization you can create or run your project.

Good luck!