'android-24' requires JDK 1.8 or later to compile

后端 未结 8 2099
轮回少年
轮回少年 2021-02-01 00:12

I use Android Studio and recently got the error:

Error:Execution failed for task \':app:compileDebugJavaWithJavac\'. compileSdkVersion \'android-24\' re

8条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 00:45

    Just an FYI I had this error with an Ionic project. All the commands came back pointing to the correct JDK and JAVA_HOME was set correctly.

    There was an entry in my PATH to JDK 1.7\bin, replacing that with the 1.8\bin fixed it for me.

提交回复
热议问题