Deleting google-services json file

Divyang Shah picture Divyang Shah · Sep 25, 2017 · Viewed 15.1k times · Source

Actually by mistake I pasted google-services json file of another project in my current project of android .So when building the app , i get error no matching client found for package 'com.mybidu.www'. I tried to delete the file but it gives error 'Java IO Exception Cannot delete google-services.json ' Nor does it allow me to overwrite the same file . What should i do ?

Answer

Raja picture Raja · Sep 25, 2017

First you have to just download the new fresh google-services.json.

then copy the file.

paste it into Project view -> app folder in your android-studio app.

It will overwrite your existing file

Suppose you are not able to do it, just do this.

That json file referenced in android-studio cache so once close your android studio and then delete this file it will delete.. Hope it will help you...