我克隆的资源库:https://github.com/facebook/react-native并尝试运行在Android模拟器的UIExplorer例子。阵营原生Android例不起作用
./gradlew :Examples:UIExplorer:android:app:installDebug
./packager/packager.sh
我上了Android模拟器此错误消息:
Unable to download JS Bundle, Did you forget to start the development server or connect your device?
我明白这有点类似于此: react native android failed to load JS bundle
但在这里我不得不使用命令”。 /packager/packager.sh“来运行该示例。所以上面的答案不适用于这种情况。