• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
11 views

Problem :

I am getting bellow error while I'm trying to setup an Android dev environment on Mac

error:buildtools 24.0.2 requires java 1.8 or above. current jdk version is 1.7.

by (6.9k points)  

1 Answer

0 votes

Solution:

Please make sure your JDK Version through Project Structure is as shown in bellow screen shot

enter image description here

Now you must add below code in your gradle section

    compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
Its working fine for me.
by (30.3k points)  
edited by
...