Activity class {xxx/xxx.MainActivity} does not exist

错误原因:MainActivity不在项目的根目录下边

解决方法:

  1. 打开对应的文件夹node_modules.react-native/local-cli/runAndroid/,找到runAndroid.js这个文件ReactNative之 Activity class {xxx/xxx.MainActivity} does not exist
    修改对应的包文件下正确的路径
    ReactNative之 Activity class {xxx/xxx.MainActivity} does not exist
  2. 移动MainActivity.class 至根目录下边

相关文章:

  • 2021-07-16
  • 2022-12-23
  • 2021-05-11
  • 2022-12-23
  • 2021-04-18
  • 2022-12-23
  • 2022-03-04
  • 2021-11-06
猜你喜欢
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2021-10-09
  • 2022-02-22
  • 2022-01-07
  • 2021-07-02
相关资源
相似解决方案