androidflutterfirebasebuild.gradleproject-idx

How to change android app id in project idx?


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?


Solution

  • 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.