[android][firebase] Error:Execution failed for task ‘:app:processDebugGoogleServices’.の解決法

Error:Execution failed for task ‘:app:processDebugGoogleServices’.の解決法

AndroidにFirebaseを導入しようとして

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

というエラーが出た際の解決法は

  • google-services.jsonに書かれているpackage_name
  • /app/build.gradleに書かれているapplicationId
  • manifestに書かれているpackage名

がunmatchのために発生する
google-services.jsonに書かれているpackage_nameに合わせるのがよい

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です