react-native environment Installation FAQ

npm install react-native-cli -g

react-native init yourproject

npm install 

react-native run-ios

Question 1: the card can not open the emulator command line; Solution: Open vpn, need to rely on some FQ

react-native run-android

Question 2:

Failed to install the following Android SDK packages as some licences have not been accepted

解决方法:Change directory to /Users/windseek/Library/andriod/sdk/tools/bin And over here run ./sdkmanager --licenses Accept the licenses and you'll be good to go

Problem 3: Make sure you have an Android emulator running or a device connected and have
run an Android emulator
New local.properties in the android directory

sdk.dir = / Users / windseek / Library / Android / sdk
disposed directory sdk


 

Guess you like

Origin www.cnblogs.com/windseek/p/11111099.html
Recommended