2

i have a problem when i trying to compile my project. Gradle claims that i have not install build tools version 24.0.0 but it installed as you see in the screenshot. Any ideas?

enter image description here

Cœur
  • 37,241
  • 25
  • 195
  • 267
wownis
  • 437
  • 1
  • 5
  • 14

4 Answers4

0

Clean your project then try to build it.

To Clean in topBar of your android studio: Build -> Clean project.

Charu
  • 1,055
  • 13
  • 18
  • Gradle file is ok because my friend can compile this project on his computer. Something is wrong with my android studio probably – wownis Jan 06 '17 at 04:55
  • which android studio version you and your friend is using? Is it same? I don't know why but sometimes it happens due to this reason, try to match your version. – Charu Jan 06 '17 at 05:01
0

Clear your Android Studio Cache and Restart Android Studio.
To clear cache, Go to File > Invalidate Caches/Restart.

Pang
  • 9,564
  • 146
  • 81
  • 122
0

Try to clean and rebuild your project, then install lower version of build tools, and then invalidate cache and restart.

Pang
  • 9,564
  • 146
  • 81
  • 122
Pratik Gondil
  • 689
  • 1
  • 6
  • 17
0

I found a solution. My ANDROID_HOME variable was wrong. Thanks all.

wownis
  • 437
  • 1
  • 5
  • 14