firebase / quickstart-java

Quickstart samples for Firebase Java Admin SDK
Apache License 2.0
234 stars 143 forks source link

Please Help Me #24

Closed tango4567 closed 6 years ago

tango4567 commented 6 years ago

I know this is not the right place to ask that kind to question here but I am not able to get more documentation on the following issue. Question 1 .setCredentials() and Error:(33, 20) Failed to resolve: com.google.firebase:firebase-admin:11.8.0

FileInputStream serviceAccount = null; try { serviceAccount = new FileInputStream("path/to/serviceAccountKey.json"); } catch (FileNotFoundException e) { e.printStackTrace(); } FirebaseOptions options = new FirebaseOptions.Builder() .setCredentials(GoogleCredentials.fromStream(serviceAccount)) .setDatabaseUrl("https://example.firebaseio.com/") .build(); FirebaseApp.initializeApp(options);

Not able to find solution and documentation for this. After reading multiple instructions and documentation I found these following data

samtstern commented 6 years ago

@tango4567 the "failed to resolve" error message sounds like an issue with your Maven or Gradle configuration. Please ask this question on StackOverflow and someone can help you debug.