REPL-Figwheel无法连接到重生应用程序

问题描述 投票:3回答:1

我正在从Re-Natal模板启动一个应用程序(未更改;从project.cljhttps://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 }
react-native adb clojurescript figwheel re-natal
1个回答
0
投票

我在其他情况下也有此情况,但是会发生这种情况的一个情况是,您与Leiningen进行了生产构建,之后又没有重新运行re-natal use-figwheel。要解决这个问题,您必须

  1. 运行re-natal use-figwheel
  2. 重新启动react-native start / npm run start
  3. 重新加载Android应用。
© www.soinside.com 2019 - 2024. All rights reserved.