最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - React-Native: ERROR: requires JDK11 or higher. Incompatible major version detected: '8' - Stack Ove

programmeradmin2浏览0评论

after running npm install and trying to build my app I get the following error:

**************************************************************************************************************



ERROR: requires JDK11 or higher.
Inpatible major version detected: '8'



**************************************************************************************************************






FAILURE: Build failed with an exception.

* What went wrong:
Could not dispatch a message to the daemon.

I have no idea how to fix it.

after running npm install and trying to build my app I get the following error:

**************************************************************************************************************



ERROR: requires JDK11 or higher.
Inpatible major version detected: '8'



**************************************************************************************************************






FAILURE: Build failed with an exception.

* What went wrong:
Could not dispatch a message to the daemon.

I have no idea how to fix it.

Share Improve this question asked Apr 13, 2022 at 18:26 gabogabansgabogabans 3,5739 gold badges51 silver badges110 bronze badges 2
  • medium./@kirebyte/… – Abe Commented Apr 13, 2022 at 18:49
  • I 'm on Windows – gabogabans Commented Apr 13, 2022 at 18:53
Add a ment  | 

2 Answers 2

Reset to default 5

You need to install the JDK 11

If you already have it, then you might need to review your environmental variables to make sure they are pointing to the right version.

WORKS ON WINDOWS!

First Step you should install https://www.oracle./java/technologies/javase/jdk11-archive-downloads.html

make sure you install it on the same folder as where the OpenJDK's installed before, mine installed on C:\Program Files\OpenJDK, you can check it on the next step.

Then go search Edit the system environment variables Edit the system environment variables

Click On Environment Variables 2

then change the JAVA_HOME Value location to your JDK 11's Folder you installed before 3

Save it and restart you PC

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论