studio 编译报错:compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.
来源:互联网 发布:朋友圈 知乎 编辑:程序博客网 时间:2024/05/20 08:41
翻译: compileSdkVersion android-24”需要JDK 1.8或更高版本编译。
报错现象如下图:
原因:studio默认选择编译的版本为1.8,而当前jdk环境不是1.8.
解决方法:
1. 在build.gradle中查看编译版本;
2.查看studio设置,修改studio设置的jdk设置。
方法一:修改JDK,更改为JDK1.8,
方法二:更改studio编译版本。如下图:
0 0
- studio 编译报错:compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.
- compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.
- compileSdkVersion 'android-24' requires JDK 1.8 or later to compile
- compileDebugJavaWithJavac.compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.
- compileDebugJavaWithJavac.compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.
- 'android-25' requires JDK 1.8 or later to compile
- 解决 Android Nougat requires the IDE to be running with Java 1.8 or later Install a supported JDK
- Android studio项目报:Jack requires Build Tools 24.0.0 or later 错误
- Android N requires the IDE to be running with Java 1.8 or later
- Android N requires the IDE to be running with Java 1.8 or later
- 解决 Android N requires the IDE to be running with Java 1.8 or later
- Android N requires the IDE to be running with Java 1.8 or later 问题解决
- Android N requires the IDE to be running with Java 1.8 or later 解决方法
- mac上安装android studio出现Error:compileSdkVersion android-x requires compiling with JDK 7问题
- mac上安装android studio出现Error:compileSdkVersion android-x requires compiling with JDK 7问题
- android studio出现Error:compileSdkVersion android-x requires compiling with JDK 7问题
- ubuntu在安装android studio出现Error:compileSdkVersion android-x requires compiling with JDK 7问题
- requires the IDE to be running with java 1.8 or later 解决方法
- Java序列化的作用
- 谈谈你对MVC的理解
- vagrant构建虚拟开发环境
- mybatis_SQL映射(2)出现的错误
- 关于C++中操作符重载的疑问 :四个运算符=, ->, [], ()不可以重载为全局函数(友员函数)
- studio 编译报错:compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.
- ACM学习历程21——各种排列组合问题
- lintcode 翻转链表
- linux小记:Ubuntu和Arch下的Apache
- Cache之组相连映射
- Java ServletContext 详解
- 129. Sum Root to Leaf Numbers
- 也谈Python多线程(实例讲解)
- 基于ArcGIS API For JavaScript调用GP服务实现动态插值分析实现