A JNI error has occurred, please check your installation and try again

Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.UnsupportedClassVersionError: Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

较高版本的JDK编译的java class文件试图在较低版本的JVM上运行产生的错误

打开File-Project structure,把默认目录下的JDK路径改为自己的目录
在这里插入图片描述
其实这个路径我是看Android studio的设置里填写的…

发布了640 篇原创文章 · 获赞 143 · 访问量 54万+

猜你喜欢

转载自blog.csdn.net/u010356768/article/details/103095122