The String#value field is not present on Android versions >= 6.0

前端 未结 3 1714
逝去的感伤
逝去的感伤 2021-01-18 01:54

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

相关标签:
3条回答
  • 2021-01-18 02:20

    You can add the following line in AndroidManifest.xml:

    <uses-library android:name="org.apache.http.legacy" android:required="false"/>
    
    0 讨论(0)
  • 2021-01-18 02:36

    Use com.firebase:geofire-android:2.1.1. Maybe it's a version problem. This solved it for me.

    0 讨论(0)
  • 2021-01-18 02:36

    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.

    0 讨论(0)
提交回复
热议问题