搞定Android null requires the IDE to be running with Java 1.8 or later
2018-01-04 17:24
381 查看
AS里面我们需要两个JDK:Project JDK & IDE JDK
前者用于编译Java代码
后者用于启动运行AS自己
Project JDK
可以通过file-> other settings-> default project structure 里面查看修改
通过更改JDK的版本
IDE JDK
这个问题的主要原因就是因为IDE JDK太低了。
我的电脑-->环境变量-->系统变量-->JAVA_HOME更改为相同的JDK版本(与AS里面的JDK相同的版本)
改完这些,会出现
Exception raised during rendering: com/android/util/PropertiesMap
然后就没有然后了,这个问题的出现楼主也不会解决。
暂时的办法就是 将模拟器的API 降低 到23/17
但是我相信这是治标不治本的,希望进一步的学习能够解决这个问题。
前者用于编译Java代码
后者用于启动运行AS自己
Project JDK
可以通过file-> other settings-> default project structure 里面查看修改
通过更改JDK的版本
IDE JDK
这个问题的主要原因就是因为IDE JDK太低了。
我的电脑-->环境变量-->系统变量-->JAVA_HOME更改为相同的JDK版本(与AS里面的JDK相同的版本)
改完这些,会出现
Exception raised during rendering: com/android/util/PropertiesMap
然后就没有然后了,这个问题的出现楼主也不会解决。
暂时的办法就是 将模拟器的API 降低 到23/17
但是我相信这是治标不治本的,希望进一步的学习能够解决这个问题。
相关文章推荐
- 解决 Android Nougat requires the IDE to be running with Java 1.8 or later Install a supported JDK
- Android Stdio 中的Rendering Problems Android N requires the IDE to be running with Java 1.8 or later Install a supported JDK解决办法
- 解决 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
- requires the IDE to be running with java 1.8 or later 解决方法
- compileDebugJavaWithJavac.compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.
- compileDebugJavaWithJavac.compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.
- Err:The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array
- Android Build with Gradle and ProGuard : “The output jar must be specified after an input jar, or it
- jstl学习常见错误一: The absolute uri: http://java.sun.com/jst/core cannot be resolved in either web.xml or the jar files deployed with
- Error running app:instant Run requires "Tools | Android | Enable ADB integration to be enable
- Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with ...
- android studio The supplied javaHome seems to be invalid. I cannot find the java executable.
- Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled
- RuntimeException could not be mapped to a response, re-throwing to the HTTP container java.lang.Null
- Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.