SimCoderYoutube / UberClone

Uber Clone Android App 👨‍💻 I'll show you how you can do this in the simplest way and terms possible. By the end of this series you'll have learned how the big companies do it and will be able to do the same, you not only will be able to do this app, but you'll be able to put what you learn into your very own projects! In this series, we use Android Native with java to build the project. We use firebase for all our microservice needs like the auth system, database, storage, amongst others. firebase, android studio, and java. In this series, we'll use all of them and you'll learn them by doing an iconic app. Welcome to this Simcoder project and make a Uber Clone!
MIT License
1.02k stars 712 forks source link

The app crashes #6

Open afosh opened 6 years ago

afosh commented 6 years ago

when i click on register on my emulator the app crashes and the logcat shows this error

04-14 15:22:50.640 7305-7305/com.simcoder.uber E/AndroidRuntime: FATAL EXCEPTION: main Process: com.simcoder.uber, PID: 7305 java.lang.IllegalArgumentException: Given String is empty or null at com.google.android.gms.common.internal.zzbq.zzgi(Unknown Source:11) at com.google.firebase.auth.FirebaseAuth.createUserWithEmailAndPassword(Unknown Source:0) at com.simcoder.uber.CustomerLoginActivity$2.onClick(CustomerLoginActivity.java:58) at android.view.View.performClick(View.java:6256) at android.view.View$PerformClick.run(View.java:24701) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 04-14 15:22:50.640 7305-7305/com.simcoder.uber E/UncaughtException: java.lang.IllegalArgumentException: Given String is empty or null at com.google.android.gms.common.internal.zzbq.zzgi(Unknown Source:11) at com.google.firebase.auth.FirebaseAuth.createUserWithEmailAndPassword(Unknown Source:0) at com.simcoder.uber.CustomerLoginActivity$2.onClick(CustomerLoginActivity.java:58) at android.view.View.performClick(View.java:6256) at android.view.View$PerformClick.run(View.java:24701) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

ahmadmust8 commented 6 years ago

because "Given String is empty or null" in this class CustomerLoginActivity.java: line : 58