I used a little trick that also solves the problem for me. You can delete your google-services file and strip out all firebase dependencies on your gradle (i.e., compile 'com.google.firebase: firebase-auth: 11.0.4'), therefore, when you try to synchronize your project, it will fail. After that, you can copy all your databases from the database to the gradle file and synchronize the project. It will still fail because the google-services file is missing. Now you can go to the firebase tool and the project will be disabled.
source share