使用React Native开发的APP
- 本地配置Android模拟器
- 配置成功后,启动安卓模拟器
- 官网:https://facebook.github.io/react-native/docs/getting-started
- 中文网:https://reactnative.cn/docs/getting-started.html
- 可以通过在项目根目录下执行以下命令(这里是toilet目录下)
npm installreact-native run-androidMac系统启动时如果报错: Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html 可以通过在项目根目录下(这里是toilet目录下)执行:
chmod 755 android/gradlew以添加权限