Error type 3 Error: Activity class {com.myapp/com.myapp.MainActivity} does not exist

1.1k Views Asked by At

when i run react-native run-android i get this error, i was installing react-native firebase I did all configuration to get this to work and just at the end it seems to be a package name error.

The thing is that I already checked the files : - /android/build.gradle - /android/app/build.gradle - /android/app/src/main/com/AndroidManifest.xml - /android/app/src/main/com/myapp/MainActivity.java - /android/app/src/main/com/myapp/MainApplication.java - /android/app/google-services.json

they have the exact same packageName

I Also tried to add change in AndroidManifest.xml the lines ".MainApplication" and ".MainActivity" to "com.myapp.MainApplication" and "com.myapp.MainActivity"

1

There are 1 best solutions below

1
On BEST ANSWER

it was a duplicate state of in AndroidManifest.xml that caused that error, check yours