Invariant Violation:Application 项目名 has not been registered.
来源:互联网 发布:51单片机蓝牙模块 编辑:程序博客网 时间:2024/06/06 02:23
Invariant Violation:Application 项目名 has not been registered.
这个错误的根本原因是根目录./index.iOS.js中
AppRegistry.registerComponent(‘项目名’,() => …);
与./ios/项目名/appDelegate.m中的
RCTRootView*rootView = [[RCTRootViewalloc]initWithBundleURL:jsCodeLocation
moduleName:@”项目名” launchOptions:launchOptions];
或是./Android/app/src/main/Java/com/项目名/MainActivity.java中的
mReactRootView.startReactApplication(mReactInstanceManager, “项目名”, null);
没有保持一致,解决方法很简单。编辑成相同的参数即可。
但是,还有一种情况!
即便你确保一致了但还是出现相同的错误提示,这又是怎么搞得呢?这个时候你可以检查一下你的命令行。有可能你同时在运行一个以上的程序,像我。如果你的react-native在运行程序A而你打开了程序B,也会出现相同的问题。解决方法很简单,关掉命令行运行程序。ctrl+c,运行你想运行的程序。
0 0
- Invariant Violation:Application 项目名 has not been registered.
- Invariant Violation:Application 项目名 has not been registered.
- React-Native坑1:Invariant Violation:Application 项目名 has not been registered.
- 【React Native】Invariant Violation: Application AwesomeProject has not been registered
- React Native Application 项目名 has not been registered.
- React-Native项目运行时报错:Application xxxProject has not been registered.
- [react-native] 导入原有的iOS项目报 Application XXX has not been registered错误
- React Native报错:Application XXX has not been registered.
- axd script engine has not been registered
- react react 报错:has not been registered
- ReactNative 学习(坑-Applocation xxxx has not been registered)
- flex error:HttpFlexSession has not been registered as a listener in web.xml
- RCP项目导出--No application id has been found
- fatal: initialization error: could not initialize application. the application has not been initiali
- Class invariant violation
- This application has not been initialized with an ESRI license and will not function correctly 解决办法
- Unable to install "项目名" The certificate used to sign "项目名" has either expired or has been
- SSL 错误:Key usage violation in certificate has been detected.
- 第一节:开发工具介绍及环境变量配置及详解(个人总结详解篇)
- 开源一个C++自动垃圾回收器
- MyBatis返回值问题
- Java编程之阶乘
- POJ_Hangover
- Invariant Violation:Application 项目名 has not been registered.
- C++拷贝构造函数与函数声明的区分
- flex布局介绍
- git clone 分支
- studio 翻译插件ECTranslation
- 抽象类、接口
- LeetCode 64. Minimum Path Sum
- mysql DATE_FORMAT的用法API
- Java设计模式--中介者模式