【发布时间】:2016-11-29 18:27:49
【问题描述】:
在 Windows 10 + Android 虚拟设备模拟器上使用 react-native。热重载已开启,一切正常。
代码编辑和重新加载的循环适用于前几次编辑,在一些编辑之后(每次编辑次数不同),打包器崩溃并显示以下错误消息:
[Hot Module Replacement] Sending HMR update to client (14:45:24:193)
[Hot Module Replacement] Sending HMR update to client (14:45:24:195)
[Hot Module Replacement] Client connected
[2:45:25 PM] <START> request:/index.android.bundle?platform=android&dev=true&hot=true&minify=false
[2:45:25 PM] <END> request:/index.android.map?platform=android&dev=true&hot=true&minify=false (2660ms)
[2:45:25 PM] <END> request:/index.android.bundle?platform=android&dev=true&hot=true&minify=false (252ms)
[Hot Module Replacement] Client connected
ERROR EPERM: operation not permitted, lstat 'c:\dev\music\index.android.js___jb_old___'
{"errno":-4048,"code":"EPERM","syscall":"lstat","path":"c:\\dev\\music\\index.android.js___jb_old___"}
Error: EPERM: operation not permitted, lstat 'c:\dev\music\index.android.js___jb_old___'
at Error (native)
See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
Press any key to continue . . .
项目的一些细节:
- 操作系统:Windows 10
- Android SDK 管理器修订版 25.1.7
- 虚拟设备的配置与此处所述完全一致:https://facebook.github.io/react-native/img/react-native-android-studio-avd-windows.png
- 使用来自管理员
cmd的react-native run android运行打包程序。
【问题讨论】:
标签: javascript android react-native windows-10 avd