我正在使用 Re-Natal 模板开始一个应用程序(没有更改它; 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
应用程序在设备上运行良好,但repl停留在,代码不会重新加载。Real Android设备上也发生了同样的情况。
应用启动后我也尝试过重新加载。
我错过了什么吗?
更新: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 }
re-natal init FutureApp
实例化一个新项目),并且 Figwheel 确实连接成功了。您能否在react-native run-android
之后添加日志输出?我特别想知道BUILD SUCCESSFUL
后的输出。 - nrako对于React Native 0.49+,您必须使用re-natal 0.8+
[链接] (https://github.com/drapanjanas/re-natal/issues/170#issuecomment-370552264) - nrako