Coding Fun Kotlin Adding Data to Cloud Firestore using Kotlin.

Adding Data to Cloud Firestore using Kotlin.





Adding Data to Cloud Firestore using Kotlin.
In this Video we are going to add data to the Cloud FireStore using Kotlin.
Lets create a basic application layout to fetch data from the user and store it in the Cloud Firestore using Kotlin.

GitHub to this project :

Tags: , , , , , , , , , , , , , , , , , , , , , ,

6 thoughts on “Adding Data to Cloud Firestore using Kotlin.”

  1. At the 7:41 mark, I've copied all your src. The program compiles (Android Studio 3.3.1) and runs. Unfortunately, when the Store button is pushed, I get this error: "Unfortunately, FirestoreApp has stopped." The logcat shows:

    02-15 15:45:48.385 23601-23601/com.notrealdomain.firestoreapp E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.notrealdomain.firestoreapp, PID: 23601
    kotlin.TypeCastException: null cannot be cast to non-null type android.widget.EditText
    at com.notrealdomain.firestoreapp.MainActivity.store(MainActivity.kt:29)
    at com.notrealdomain.firestoreapp.MainActivity.access$store(MainActivity.kt:11)
    at com.notrealdomain.firestoreapp.MainActivity$onCreate$1.onClick(MainActivity.kt:24)
    at android.view.View.performClick(View.java:5242)
    at android.widget.TextView.performClick(TextView.java:10571)
    at android.view.View$PerformClick.run(View.java:21196)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:6938)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

    I have a firebase cloud firestore db and the app is attached to that db. I suspect this is due to using the newest Android Studio, but I could be wrong. Thanks.

  2. Uwe Aime Van says:

    Please add how to read data from firestore using kotlin

  3. Sir please more videos on more this….

Leave a Reply

Your email address will not be published. Required fields are marked *