Closed eidan66 closed 4 months ago
The issue also accrues on my app. Help please!
I had something similar but a slightly different error message - so careful! - this may not apply - however, this PR may be of interest - either it or something like it may work for you? #2388
cd android
./gradlew clean
./gradlew uninstallAll
hey @eidan66 did you resolve your issue?
Let me know if the issue is still presented, happy to re-open and fix support for detecting MainActivity :)
Have a nice day. I have many mistakes, can you help me? @szymonrybczak
@1210505903 if you you think that's an issue with React Native Community CLI, please raise new issue - we'll do our best to help you :)
After trying everything I could find, including clearing every cache I could think of and restarting my computer and Studio a number of times, I think there was still some sort of caching issue happening because I ended up needing to add my package name to the front of .MainActivity
. So instead of <activity android:name=".MainActivity"
, I needed <activity android:name="[your_package_name].MainActivity"
. Hope this helps someone.
Environment
Description
I Updated
namespace
andapplicationId
to be the same name (after we initiate the project and change the name), after it i rannpm run android
i'm getting this error message and the app won't open automaticallyStarting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=XX.XXX.XXXX/.MainActivity } Error type 3 Error: Activity class {XX.XXX.XXXX/XX.XXX.XXXX.MainActivity} does not exist.
XX.XXX.XXXX
= my package nameReproducible Demo
I can't share the code..
I have try those things before open this ticket: https://stackoverflow.com/questions/20915266/error-type-3-error-activity-class-does-not-exist https://github.com/react-native-community/cli/pull/2269 (and it already install by react native community by the versions on my project)
./gradlew clean
->npm run android
-> same error removing build folder -> same error