How to fix build tools (22.0.0/1) dependency issues

Domingo Oh picture Domingo Oh · Jul 15, 2015 · Viewed 13k times · Source

Before last month, I have been using Eclipse for android development. But now I am trying to use android studio because of the google's policy.

I am so tired.

I ran across this error

enter image description here

I don't understand this message. Because I don't use "Build Tools revision 23.0.0 rc" I am using 22.0.0.

compileSdkVersion 22
buildToolsVersion "22.0.0"

But I met that's error continue. So I downloaded and Installed Build Tools 23.0.0 rc2. But I met network error.

enter image description here

Solutions please. I am tired.

Answer

Sheychan picture Sheychan · Jul 15, 2015

it happens because of build tools inconsistency. Firstly make sure 22 is installed then 23rc is not installed.

enter image description here

After that in your Android Studio Open Gradle Scripts >> build.gradle (Module:app). Make sure the installed build tool which is 22.0.1 in me is declared here. After changing the numbers make sure you rebuild/sync/refresh the project. And you are done. Note: Make sure this is done to all of your projects

enter image description here