The package name in the AndroidManifest.xml is overridden by applicationId in build.gradle. How to avoid this. I merely want to change my ApplicationID, but it overrides the package in Manfiest file. Which is a problem for me.
What is the way to avoid it. I just want to change ApplicationID and want the Package name remain same.
I have tried to manually, reset the package name in the Manifest file, yet when I build the App it overrides it.
i think you are trying to change the application Name alone or application Bundle Id if you wanna change the application Name its more simple just change here at
Project_Folder/android/app/src/main/res/values/strings.xml
and then it will resemble whenever you release the apk or install in debug mode itself. If you wanna change the Bundle Id you need to change in several places which are as follows :-
Project_Folder/android/app/build.gradle ( named as application id )
Project_Folder/android/app/BUCK ( package = 'your old id' )
3.Project_Folder/android/app/src/main/AndroidManifest.xml ( package = 'your old id' ) 4.Project_Folder/android/app/src/main/java/com/fmstechnician/MainApplication.java 5.Project_Folder/android/app/src/main/java/com/fmstechnician/MainActivity.java 6.Project_Folder/android/app/src/main/java/com/helpdesk_v3/newarchitecture/components/MainComponentsRegistry.java
7.Project_Folder/android/app/src/main/java/com/helpdesk_v3/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java
8.Project_Folder/android/app/src/main/java/com/helpdesk_v3/newarchitecture/MainApplicationReactNativeHost.java
Caution :- Don't just replace it all at once ( it may breaks the build ) just replace it page wise and then after that you can achieve the new app with new bundle id