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

Please log in or register to answer this question.

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 15 views
15 views
I am finding the script for getting current time in 24 hour format in android.
asked Oct 4, 2020 Daniel Anderson 4k points
0 votes
1 answer 41 views
41 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, 2020 mphil 2.3k points
0 votes
1 answer 91 views
91 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
1 answer 192 views
192 views
Problem : I am facing the below error "Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled." Above error occurs while using a latest Gradle Plugin & a latest Android SDK.
asked Feb 3, 2020 jwilliam 3.9k points
0 votes
1 answer 34 views
34 views
Problem : I am new to Android Programming. I have started working on it recently. Now I am facing below error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.transform.api.TransformException: com.android.ide.common. ... have added too many Gradle dependencies, but all those dependencies are important for my project. Have anybody faced this issue?
asked Feb 28, 2020 mphil 2.3k points
0 votes
1 answer 8 views
8 views
Does anybody have any ideas?
asked Dec 19, 2020 TeamScript 9.3k points
0 votes
2 answers 526 views
526 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 137 views
137 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
0 votes
1 answer 117 views
117 views
Problem : I am getting bellow error when running a JUnit test using IntelliJ IDEA error java javactask source release 1.7 requires target release 1.7
asked Nov 1, 2019 peterlaw 6.9k points
0 votes
1 answer 1.5K views
1.5K views
Problem : I am trying to learn the Android and Ionic. If I run the ionic build android command in the root of the ionic project, I am facing below error: FAILURE: Build failed with an exception. Where: Script '/home/javad/Desktop/javadApp/platforms/android/CordovaLib/cordova. ... Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
asked Feb 18, 2020 mphil 2.3k points