"react-native run-android" - BUILD is SUCCESSFUL but get error type 3 Error: Activity class MainActivity does not exist -
i try run application on android emulator failed. run react-native run-android
, build
successful error type 3 , don't see installed on emulator.
this part of when run "react-native run-android" in cmd:
installed on 1 device. build successful total time: 2 mins 24.714 secs starting app on ***** (...\android\sdk/platform-tools/adb -s **** shell start -n app/.mainactivity)... starting: intent { cmp=app/.mainactivity } error type 3 error: activity class {app/app.mainactivity} not exist.
i spent hours on , in end ended replacing package name. original name contained 2 dots. e.g. com.abc.test
renamed com.abctest
keep in mind update folder name in android (android/app/src/main/java/com
).
i tried react-native init myproject --package "com.abctest"
seems in recent versions of react native no longer works. tried using npm instead of yarn , tried remove node-modules
, caches
non of worked.
potentially might need run watchman watch-del-all rm -rf node_modules && npm install
afterwards
i had project working fine few weeks ago, seems has changed somewhere , .
no longer parsed correctly.
Comments
Post a Comment