Change to AndroidManifest,xml causes app to crash

If I change the android:name to something else like “” my app crashes on startup on the device and emulator. I have changed it everywhere else with no issues.

Any idea why this could be?


Hi, @wekas
Try this in my case it works perfectly, hope it will solve your problem too:

<activity android:configChanges=“orientation|keyboardHidden|keyboard|screenSize|locale” android:name=“MainActivity”

That didn’t work for me.
It appears if you change your reverse domain e.g. io.ionic.starter to something else it breaks the app.

To fix it I had to delete my android folder and recreate with npx cap add android.
It had created a series of folders and a file src/main/java/io/ionic/starter/ and the olny way to fix this was to recreate the android project.
Not ideal but it works.