我正在从Re-Natal模板启动应用程序(未更改; https://github.com/drapanjanas/re-natal/blob/master/resources/project.clj的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
的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 }
答案 0 :(得分:0)
在其他情况下,我也遇到过这种情况,但是发生这种情况的一种情况是,您与Leiningen进行了生产构建,并且随后没有重新运行<!DOCTYPE html>
<html>
<head>
<!-- Bootstrap4 -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- Glyphicons File -->
<!--<link rel="stylesheet" href="../glyphicons.css" type="text/css"> WORKS (COMMENTED TO USE WITH STACKOVERFLOW SNIPPET)-->
<!-- <link rel="stylesheet" href="https://raw.githubusercontent.com/feRpicoral/GlyphiconsBootstrap4/master/glyphicons.css" type="text/css"> DOESN'T WORK-->
<title>Glyphicons Test</title>
</head>
<body>
<style type="text/css">
div {
font-size: 100px;
margin: 100px auto;
}
#text {
font-size: 20px;
display: block;
}
</style>
<div class="container bg-dark text-center text-white">
<span class="glyphicon glyphicon-picture"></span>
<span id="text">Icon is above if working</span>
</div>
</body>
</html>
。要解决这个问题,您必须
re-natal use-figwheel
re-natal use-figwheel
/ react-native start