Invariant Violation:Application 项目名 has not been registered.
来源:互联网 发布:数据库第五版答案 编辑:程序博客网 时间:2024/06/05 14:10
这个错误的根本原因是根目录./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.
- 利用URL下载
- Andriod Studio中出现找不到…
- Android中RadioButton的使用
- Android中Spinner的使用
- Android中AutoCompleteTextView的…
- Invariant Violation:Application 项目名 has not been registered.
- Android中Dialog的使用
- source_Insight新建工程
- Android中日期和时间的使用
- Android中Handler的使用
- Android中AsyncTask的讲解(动态下…
- 如何解决Andoroid Studio出现…
- Android Studio如何配置夜神模拟器
- Android Studio的快捷键&nbsp…