It is not possible to use two google-services.json files in the same Android application. The file name is the same among themselves, and they should be in one place. Thus, in this case another one will be overwritten.
However, all that happens with google-services.json is that it is automatically processed when FirebaseApp
. You can also specify the information needed for FirebaseApp
explicitly in your code. This way you can access two Firebase projects from one application. For an example of how to do this, see my answer to How to connect to multiple firebase databases from an Android application.
Another option would be to manually merge the two google-services.json files. However, I recommend against this, since you can probably overwrite the file merged manually with the new version at some point.
The last option (and the one I recommend) is to bite the bullet and transfer the files from the old Firebase project to the new one. This way you will only need one google-services.json in the future.
source share