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
  • 34,719
  • 24
  • 185
  • 251
wownis
  • 317
  • 1
  • 4
  • 14

4 Answers4

0

Clean your project then try to build it.

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

Charu
  • 995
  • 11
  • 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,073
  • 146
  • 84
  • 117
0

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

Pang
  • 9,073
  • 146
  • 84
  • 117
0

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

wownis
  • 317
  • 1
  • 4
  • 14