I am trying to release my apk and just changed the com.example package name to my own com.[companynamehere].[appname] in the AndroidManifest.xml file and app/build.gradle file, however now my app stops working as soon as i run it. any idea what might be the problem? is there anywhere else i need to change the package name? I'm also using firebase and i generated a new google-services.json file with the new package name.
The package name is the identitiy of the application. To rename the package name, In eclipse right click on the project in project explorer. Then Android Tools > rename Aplication Package name. Then enter the new package name.
PackageInfo packageInfo = await PackageInfo. fromPlatform(); Now by using packageInfo object, you can easily get appName, packageName, AppVersion & app build number.
You also need to update your package name in: Mainactivity.java
Update: If you have enabled Kotlin, you should update your package name in Mainactivity.kt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With