Skip to content Skip to sidebar Skip to footer

Unable To Compile My Android Project

When i try to compile my android project iam getting the following error. Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configurat

Solution 1:

It happens because the the 21.0.1for support librariesdoesn't exist.

You can use in build.gradle one of these:

dependencies{

  //it requires compileSdkVersion 23compile'com.android.support:appcompat-v7:23.2.0'compile'com.android.support:appcompat-v7:23.1.1'compile'com.android.support:appcompat-v7:23.1.0'compile'com.android.support:appcompat-v7:23.0.1'compile'com.android.support:appcompat-v7:23.0.0'

  //it requires compileSdkVersion 22compile'com.android.support:appcompat-v7:22.2.1'compile'com.android.support:appcompat-v7:22.2.0'compile'com.android.support:appcompat-v7:22.1.1'compile'com.android.support:appcompat-v7:22.1.0'compile'com.android.support:appcompat-v7:22.0.0'

  //it requires compileSdkVersion 21compile'com.android.support:appcompat-v7:21.0.3'compile'com.android.support:appcompat-v7:21.0.2'compile'com.android.support:appcompat-v7:21.0.0'

}

The same consideration is valid also for the com.android.support:recyclerview-v7

Solution 2:

I faced similar issue and installed android SDK build tools -v23.0.1 and referred Android setup guide https://facebook.github.io/react-native/docs/android-setup.html#content

but couldn't locate "Android support repository",for latest version of SDK manager- the option is changed to "Local maven repository for support libraries".

enter image description here

Solution 3:

I think the buildToolsVersion "23.0.0 rc2" line is causing the problem.

change it to buildToolsVersion "21.0.1"

or try

compileSdkVersion 21
buildToolsVersion "22.0.1"

and

compile'com.android.support:appcompat-v7:22.2.0'

and yes what sharj has said is also correct, you maybe missing the build tools

Post a Comment for "Unable To Compile My Android Project"