polina-c
polina-c

Reputation: 7077

How to update package name for Play Store app bundle?

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?

error

Upvotes: 3

Views: 3040

Answers (3)

Kushal Hapani
Kushal Hapani

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

Tasnuva Tavasum oshin
Tasnuva Tavasum oshin

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

Alwayss Bijoy
Alwayss Bijoy

Reputation: 844

android -> app -> build.gradleenter image description here

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

Related Questions