Reputation: 7077
I followed the steps to sign bundle for my Flutter app.
Than I dragged build/app/outputs/bundle/release/app-release.aab
to Google Play console's app bundles, and got error You need to use a different package name because "com.example" is restricted.
I searched for "com.example" in my project folder, but did not find anything.
Where can I update the package name?
Upvotes: 3
Views: 3040
Reputation: 126
To change package name in android you need to use this command in your terminal
flutter pub global activate rename
then
rename setBundleId --value "com.your.package.name"
Upvotes: 4
Reputation: 4750
add this :
dependencies:
change_app_package_name: ^1.1.0
then in the terminal write this :
flutter pub run change_app_package_name:main com.new.package.name
change com.new.package.name with your name
Upvotes: 2
Reputation: 844
android -> app -> build.gradle
make sure when using any package name you need to change
example
, because Google not support example keword so instead of example give any name like
"com.bijoy.bijoyx"
Upvotes: 3