我正在尝试在手机中构建并运行本机应用程序.我尝试使用"入门"并且工作正常.我执行以下操作
cd AwesomeProjectreact-native startcurl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
react-native run-android
它在我的Android手机中运行.
git clone https://github.com/h87kg/NavigatorDemo.gitcd NavigatorDemoreact-native start我收到Command 'start' unrecognized. Did you mean to run this inside a react-native project?错误.我该怎么做才能运行这个项目?任何帮助表示赞赏.提前致谢.
更新
安装依赖项后,npm install我可以运行服务器.现在,当我尝试运行时,react-native run-android我收到以下错误
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Could not install the …Run Code Online (Sandbox Code Playgroud)