I'm Currently working on Firebase SDK in java. So to add the SDK I added compile 'com.google.firebase:firebase-admin:5.9.0' to dependecies in build.gradle and when I start writing my API it shows error on FirebaseOptions.
Error is on
FirebaseOptions options = new FirebaseOptions.Builder().setCredentials(GoogleCredentials.fromStream(serviceAccount)).build();
Using this as a reference https://firebase.google.com/docs/admin/setup
Don't know what exactly the problem is?