The request contains malformed or mismatching credentials [ App ID does not match requested project. ]

I have tried to perform phone authentication using firebase,After putting the latest google-services.json file, the app was unable to generate OTP, It was throwing this error:

ERROR Error: Uncaught (in promise): The request contains malformed or mismatching credentials [ App ID does not match requested project. ]

So i removed:

  1. node_modules
  2. android platform
  3. google-services-json file

Then created a new project in firebase and downloaded latest google-services.json file.

After the download(google-services.json), installed node modules, Then added google-services.json file in root folder of the project, Then builded for android. Now if again i am trying to generate the OTP still throwing the same error. Any help?