我正在从Re模板启动一个应用程序(没有改变它;project.clj来自https://github.com/drapanjanas/re-natal/blob/master/resources/project.clj)。
然后我跑了
react-native start
re-natal use-android-device avd
re-natal use-figwheel
lein figwheel android
react-native run-android该应用程序在设备上运行正常,但该程序停留在Prompt will show when Figwheel connects to your application上,代码不会重新加载。同样的情况发生在real的安卓设备上。
在应用程序启动后,我还要重新加载它。
我是不是遗漏了什么?
更新:来自react-native run-android的输出
Installing APK 'app-debug.apk' on 'Nexus_5X_API_28(AVD) - 9' for app:debug
Installed on 1 device.
BUILD SUCCESSFUL
Total time: 36.329 secs
This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html
Running /home/ale/Android/Sdk/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081
Starting the app on emulator-5554 (/home/ale/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -n com.renatal/com.renatal.MainActivity)...
Starting: Intent { cmp=com.renatal/.MainActivity }发布于 2019-12-06 02:23:45
我在其他情况下也有过这种情况,但是有一种情况会发生,那就是当您已经使用Leiningen完成了生产构建,而不是随后重新运行re-natal use-figwheel时。要解决这个问题,你必须
re-natal use-figwheelreact-native start / npm run starthttps://stackoverflow.com/questions/52240432
复制相似问题