[英]React native android app didn't start
I have an android app use react native. 我有一个Android应用程序使用react native。 The app run smoothly before.
该应用之前运行平稳。 But for now it didn't run when I type command
react-native run-android
. 但是现在当我键入命令
react-native run-android
时,它没有运行。 I got error message like this: 我收到这样的错误消息:
Error type 3
错误类型3
Error: Activity class {com.test/com.test.MainActivity} does not exist.
错误:活动类{com.test / com.test.MainActivity}不存在。
And after that error, I can't run any new app. 在发生该错误之后,我无法运行任何新应用。 I run command
react-native init app_name
, cd app_name
, and react-native run-android
. 我运行命令
react-native init app_name
, cd app_name
和react-native run-android
。 The error message I got is: 我收到的错误消息是:
The development server returned response error code:500
开发服务器返回响应错误代码:500
Anyone know how to resolve this? 有人知道如何解决这个问题吗? Thanks ^^
谢谢^^
Problem solved! 问题解决了!
Just type this command 只需输入此命令
npm install --save babel-preset-react-native@2.1.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.