So I want to upload an app on Google Play, so I build an .aab file with the key and want to upload this one as the first Release. Google says that my file uses the package ‘com.example’ and this isn’t allowed. So I want to test the .aab file but wasn’t successful. But I think the file isn’t working as it should, becuase I couldn’t find anything named ‘com.example’ in the whole project. Not in the pubspec.yaml, not in the main, not even in the AndroidManifest.xml. So my question is, what does it mean, when it says I#m using the ‘com.example’ package and does it mean that my .aab file wasn’t builded correctly?
I built the .aab file from my project in AndroidStudio. Afterwards I want to upload the file on Google Play, but there it says something like the package ‘com.example’ couldn’t be used.
2
Answers
So the solution was really easy. In the build.gradle file you search for the defaultConfig block and there you change the applicationId in whatever package you want. But you can't change the namespace in the android block.
Please read and follow this guide: https://docs.flutter.dev/deployment/android
You can skip: Shrinking your code with R8, Enabling multidex support
As for com.example you can try using global search in VScode to find where you missed renaming this name.