I am creating an app like Uber but I have ran into a problem after I got an error suddenly and the app crashed. I tried out many ways in order to get ride of this error but
You can add the following line in AndroidManifest.xml
:
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
Use com.firebase:geofire-android:2.1.1
. Maybe it's a version problem. This solved it for me.
I had a similar problem, and it was resolved by running it in an emulator with Google Play enabled and updated. Basically create a new Virtual Device that has Google Play (not just Google API).
See This Question for details.