Error type 3. Activity class {com.awesome_project/ com.awesome_project.MainActivity} does not exist in react native (Android device)

后端 未结 24 1554
甜味超标
甜味超标 2021-01-30 20:10

I\'ve created the project using the following command.

react-native init Awesome_Project

I\'ve started the packager using the following com

24条回答
  •  温柔的废话
    2021-01-30 20:32

    This happened to me after changing my project package name. I tried some of the other answers here but nothing worked until I manually deleted the android/build directory, and re-ran react-native run-android forcing the app to be rebuilt from src. Turns out the build was cached including references to the old package name.

提交回复
热议问题