[Firebase Admin SDK] Troubles while using Firebase Admin SDK to modify data in Firestore #73
Labels
api: firestore
Issues related to the googleapis/java-firestore API.
type: question
Request for information or clarification. Not an issue.
I'm using Windows 10 with Java 8 and firebase admin version 6.12.0
I am trying to use the Firebase Admin SDK to add data to Firestore. I am following these documentations: https://firebase.google.com/docs/admin/setup#add_the_sdk and
https://firebase.google.com/docs/database/admin/save-data
The Service account key that I generated was saved as Json file in the root of the project.
This is how my build.gradle dependencies looks like:
This is how my Main Java class looks like:
This is how the class FirebaseService looks like:
This is the stack trace:
The line referenced in the stacktrace as at
com.pharmapp.productregistration.FirebaseService.writeToDb(FirebaseService.java:40)
is this oneSystem.out.println(future.get().getUpdateTime());
I don't know what is going wrong I am doing everything as the documentation says.
The text was updated successfully, but these errors were encountered: