DatabaseReference databaseReference = FirebaseDatabase.getInstance (). GetReference (); databaseReference.setValue ("Hello");
Ошибка
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.google.firebase.FirebaseApp.<clinit>(com.google.firebase:firebase-common@@19.3.0:98)
at com.google.firebase.database.FirebaseDatabase.getInstance(com.google.firebase:firebase-database@@19.2.1:68)
at com.example.workers.FireWork.main(FireWork.java:14)
Caused by: java.lang.RuntimeException: Stub!
at android.os.Looper.getMainLooper(Looper.java:84)
at com.google.firebase.FirebaseApp$UiExecutor.<clinit>(com.google.firebase:firebase-common@@19.3.0:674)
... 3 more