So I want to connect two of my apps to firebase and i can’t seem to figure out how can I change my android id as by default it’s com.example.myapp for both of my apps.
I tried renaming it in build.gradle but it doesn’t seem to work or am I missing something?
2
Answers
I just searched in all files for "com.example" and found these in a new IDX Flutter project:
I presume if you edit those to your desired ID, if would suffice.
You can use the package change_app_package_name: ^1.3.0 to change your app’s package name. Add this package to your pubspec.yaml, then run the command dart run change_app_package_name:main com.your_package_name. It will automatically update your package name everywhere.