Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting google-services json file

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 ?

like image 843
Divyang Shah Avatar asked Sep 25 '17 12:09

Divyang Shah


People also ask

How do I remove Google services json?

paste it into Project view -> app folder in your android-studio app. 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...

Can I delete my json files?

You can delete a JSON schema file.

What is the Google services json file?

The google-services. json file created in this doc is used within your app to connect to firebase and facilitate Android Push Notifications and is normally labelled google-services.

Where does Google services store json files?

The google-services. json file is generally placed in the app/ directory (at the root of the Android Studio app module).


2 Answers

The error is due to the fact your google-services.json file is open in any background process may be in openJDK binary which doesn't allow it to delete. You can solve this issue without deleting the json file rather replace the content of your old google-services.json file with the new one and rebuild the project.

like image 82
GOVIND DIXIT Avatar answered Oct 14 '22 18:10

GOVIND DIXIT


Open Task Manager (Press Alt + Ctr + delete) and end the running JDK process and try again the android platform removal

like image 45
Baskar Kannaiah Avatar answered Oct 14 '22 18:10

Baskar Kannaiah