react-native run-android在新的init项目中失败

问题描述 投票:0回答:1

我试图先创建react-native init Project,然后创建react-native run-android的新本机项目。但是我得到下面的错误enter image description here

react-native-cli: 2.0.1
react-native: 0.62.2
node v12.4.0
react-native react-native-android
1个回答
1
投票

安装JDK 1.8版本,并在enviroment_variable中将其设置为JAVA_HOME,然后尝试。它应该工作

© www.soinside.com 2019 - 2024. All rights reserved.