Just open the built.gradle.kts (Module:app) file and add this line on dependencies : implementation("com.google.firebase:firebase-database:20.3.0") and click on :synch now.