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.
Asked
Active
Viewed 1.8k times
21
-
4Try `flutter clean` and then build again. – Günter Zöchbauer Sep 11 '18 at 20:05
-
Deleting `.vscode/launch.json` worked for me: https://github.com/Microsoft/vscode-java-debug/blob/master/Troubleshooting.md#reason-7 – Mikeumus Feb 26 '19 at 15:07
1 Answers
87
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

Jan D.M.
- 2,284
- 2
- 20
- 32