I am trying to setup firebase admin sdk in a Java project. Following the steps at https://firebase.google.com/docs/admin/setup#add_the_sdk I successfully added the sdk by adding the dependency to my build.gradle using,
dependencies {
compile 'com.google.firebase:firebase-admin:5.0.0'
}
then ran gradle build which returned BUILD SUCCESSFUL.
The next step in the guide uses multiple Firebase classes which I do not know where to locate. It tells me to initialize the SDK by using:
FirebaseOptions options = new FirebaseOptions.Builder()
.setCredential(FirebaseCredentials.fromCertificate(serviceAccount))
.setDatabaseUrl("https://<DATABASE_NAME>.firebaseio.com/")
.build();
FirebaseApp.initializeApp(options);
The guide doesn't show where to import these Firebase classes from either. I assume the classes were downloaded after I ran build.gradle but I cant seem to locate any of these classes. Does anyone know what location the gradle should've downloaded it to or what import I must use?