我克隆的資源庫: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「來運行該示例。所以上面的答案不適用於這種情況。