I spent several hours on this, and in the end I replaced the package name. The original name contained 2 dots. For instance. com.abc.test What I renamed as com.abctest Also remember to update the folder name in Android ( android/app/src/main/java/com ).
I also tried react-native init myProject --package "com.abctest" , but it doesn't seem to work anymore in recent versions of native reaction. I also tried using npm instead of yarn, and I also tried removing node-modules and caches , but it didn't work.
You may also need to run watchman watch-del-all rm -rf node_modules && npm install after
I had this project that worked very well a few weeks ago, but it seems that something has changed somewhere as well . no longer being processed correctly.
source share