saroj71
New Member
Hello, i m new here, anyone please help me how can i fix this issue afrer login app Crash
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cityschool.cityschool/com.cityschool.cityschool.MainActivity}: java.lang.IllegalStateException: FirebaseFirestore has already been started and its settings can no longer be changed. You can only call setFirestoreSettings() before calling any other methods on a FirebaseFirestore object.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cityschool.cityschool/com.cityschool.cityschool.MainActivity}: java.lang.IllegalStateException: FirebaseFirestore has already been started and its settings can no longer be changed. You can only call setFirestoreSettings() before calling any other methods on a FirebaseFirestore object.
Java:
Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cityschool.cityschool/com.cityschool.cityschool.MainActivity}: java.lang.IllegalStateException: FirebaseFirestore has already been started and its settings can no longer be changed. You can only call setFirestoreSettings() before calling any other methods on a FirebaseFirestore object.
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3644)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3781)
at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:101)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:138)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2306)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:201)
at android.os.Looper.loop (Looper.java:288)
at android.app.ActivityThread.main (ActivityThread.java:7918)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)
Caused by java.lang.IllegalStateException: FirebaseFirestore has already been started and its settings can no longer be changed. You can only call setFirestoreSettings() before calling any other methods on a FirebaseFirestore object.
at com.google.firebase.firestore.FirebaseFirestore.setFirestoreSettings (FirebaseFirestore.java:267)
at com.cityschool.cityschool.MainActivity.onCreate (MainActivity.java:111)
at android.app.Activity.performCreate (Activity.java:8342)
at android.app.Activity.performCreate (Activity.java:8321)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1417)
at androidx.test.runner.MonitoringInstrumentation.callActivityOnCreate (MonitoringInstrumentation.java:2)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3625)