DEV Community

Virti Parekh
Virti Parekh

Posted on

Invalid Firebase Database path: Firebase Database paths must not contain '.', '#', '$', '[', or ']'

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.navigation, PID: 16377
    com.google.firebase.database.DatabaseException: Invalid Firebase Database path: 1. cotton. Firebase Database paths must not contain '.', '#', '$', '[', or ']'
        at com.google.firebase.database.core.utilities.Validation.validatePathString(com.google.firebase:firebase-database@@19.2.1:45)
        at com.google.firebase.database.DatabaseReference.child(com.google.firebase:firebase-database@@19.2.1:102)
        at com.example.navigation.camera$2.onClick(camera.java:208)
        at android.view.View.performClick(View.java:6325)
        at android.view.View$PerformClick.run(View.java:25114)
        at android.os.Handler.handleCallback(Handler.java:790)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:192)
        at android.app.ActivityThread.main(ActivityThread.java:6748)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)

Top comments (3)

Collapse
 
fontalvo389 profile image
Alberto Fontalvo P.

What is the answer?
I had the same problem, I sent date with ",", but this problem exist on Adnroid 9.0 devices.
What was your answer?

Collapse
 
parekh_virti profile image
Virti Parekh

Got the answer!!!

Collapse
 
prineth profile image
Prineth Fernando

what?