简体   繁体   中英

Could not determine java version from '11.0.1'

I'm working on Windows 10 and just starting with react-native. from https://facebook.github.io/react-native/docs/getting-started

One of the first steps to get started is to run: react-native run-android. But I'm getting this error:

在此处输入图片说明

在此处输入图片说明

I had the same issue around November 2018, and it seems like React Native depends on Java 8 instead of Java 11 for Android. You can find it here - under "Building Projects with Native Code", choose "Windows for Development OS" and "Android for Target OS"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM