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

后端 未结 8 2102
轮回少年
轮回少年 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:50

    In Android Studio open: File > Project Structure > SDK Location > Select jdk1.8.0_101.jdk > Home

提交回复
热议问题