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つを一致させる必要がありました。
"client": [ { "client_info": { "mobilesdk_app_id": "xxxxxxxxxxx", "android_client_info": { "package_name": "com.xx.xx" //ここ } },
defaultConfig { applicationId "com.xx.xx" //ここ minSdkVersion 16 targetSdkVersion 28 versionCode 1 versionName "1.2.2" multiDexEnabled true }
参考
最後に
私は現在、株式会社ダイアログという物流×ITの会社に勤務しております。 現在、エンジニアを募集していて、カジュアル面談も実施しているのでお気軽にご連絡ください!