• Register
0 votes
50 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.

6 5 3
6,930 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.
9 7 4
38,600 points

Related questions

0 votes
1 answer 7 views
7 views
I am finding the script for getting current time in 24 hour format in android.
asked Oct 4 Daniel Anderson 4k points
0 votes
1 answer 32 views
32 views
Problem : Now a days I am learning Android Programming. I am facing below error message while trying to implement the logout functionality for the Google Sign-In for the Android: “Caused by: java.lang.IllegalStateException: GoogleApiClient is not ... .getInstance().getClient(); Auth.GoogleSignInApi.signOut(myGoogleApiClient); } I am struggling to find solution on it since yesterday.
asked Feb 27 mphil 2.3k points
0 votes
1 answer 81 views
81 views
Problem : I have updated my Android Studio to 3.0 but now facing the lot of issues.. So now stopped on the point with below issue: Could not resolve all files for configuration ':applib:_lintClassPath'. > Could not find com.android.tools.lint:lint-gradle:26.1.0-alpha01. ... project :applib I am currently using latest gradle version as: "gradle-4.2.1-all.zip". Does anyone know what my issue can be?
asked Dec 17, 2019 alecxe 7.5k points
0 votes
2 answers 398 views
398 views
Problem : Using IntelliJ IDE can not compile any projects getting bellow error error:java: javactask: source release 8 requires target release 1.8
asked Nov 1, 2019 peterlaw 6.9k points
0 votes
2 answers 103 views
103 views
Problem : Using IntelliJ IDE unable to compile any projects getting bellow error error:java: javactask: source release 1.8 requires target release 1.8
asked Oct 31, 2019 peterlaw 6.9k points