LoginSignup
4
0

More than 1 year has passed since last update.

[Flutter] ビルド時のエラーの解決策 ( No matching client found for package name)

Last updated at Posted at 2022-01-25

flutterで、androidのビルド時に下記エラーがでて、詰まったので共有です。

エラー文

Execution failed for task ':app:processDebugGoogleServices'.
> No matching client found for package name 'com.xx.xx'

解決策

google-services.jsonのpackage_nameとbuild.gradleのapplicationIdの2つを一致させる必要がありました。

android/app/google-services.json
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "xxxxxxxxxxx",
        "android_client_info": {
          "package_name": "com.xx.xx" //ここ
        }
      },
android/app/build.gradle

    defaultConfig {
        applicationId "com.xx.xx" //ここ
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 1
        versionName "1.2.2"
        multiDexEnabled true
    }

参考

最後に

私は現在、株式会社ダイアログという物流×ITの会社に勤務しております。
現在、エンジニアを募集していて、カジュアル面談も実施しているのでお気軽にご連絡ください!

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0