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 :


API 25 :


API 26 :

Implementation of Implementation of the

API 27 :


Solution 2:

For this to work, I had to install it:

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

Compile ( design: 22.2.0″)

The documentation says otherwise (documents) : 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,


  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 ‘’
compiling ‘’
compiling ‘’

This is the path to the dependency file: appcompat-v7:18.0.0

Refer to the actual path on your hard drive ->


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

couldn’t fix 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:


Solution 4:

Can’t find:

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 {
maven {

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 ‘’
compile ‘’
compile ‘’
compile ‘

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 ‘’.

compile ‘’ }.

I downloaded, but I did not get the ‘’ compilation.

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

Solution No 8:

NOTE1 : All 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 :

All supporting libraries:

Solution No 9:

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

compile ‘’

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!