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 ?
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...
You can delete a JSON schema 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.
The google-services. json file is generally placed in the app/ directory (at the root of the Android Studio app module).
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.
Open Task Manager (Press Alt + Ctr + delete) and end the running JDK process and try again the android platform removal
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With