React Native报错:This error often happens when you’re running the packager (local dev server) from a wrong folder

一、错误信息

Application xxx has not been registered.

Hint: This error often happens when you’re running the packager (local dev server) from a wrong folder. For example you have multiple apps and the packager is still running for the app you were working on before.
If this is the case, simply kill the old packager instance (e.g. close the packager terminal window) and start the packager in the correct app folder (e.g. cd into app folder and run ‘npm start’).

This error can also happen due to a require() error during initialization or failure to call AppRegistry.registerComponent.

二、解决方法

关闭所有终端工具;

关闭WebStrom其他Window;

重启终端或者WebStrom;

卸载设备上的apk(务必);

重新run;

 

React Native报错:This error often happens when you’re running the packager (local dev server) from a wrong folder

上一篇:24-ESP8266 SDK开发基础入门篇--Android TCP客户端.控制 Wi-Fi输出PWM的占空比,调节LED亮度


下一篇:苹果appstore支付,票据内容详解