Skip to main content

Posts

Showing posts from April, 2020

Crash on Android P - Didn't find class "org.apache.http.ProtocolVersion" #949

use this If your app is targeting API level 28 (Android 9.0) or above, you must include the following declaration within the  <application>  element of AndroidManifest.xml. <uses-library android:name="org.apache.http.legacy" android:required="false" /> If your app is targeting a lower API level, this is handled for you. Curiously this doesn't happen on the master branch yet, so it must be a side effect of newer Maps API version in the nav branch, or a combination with other Firebase or Play Services features there. The error message "Didn't find class "org.apache.http.ProtocolVersion"" is related to the use of the Apache HTTP library, which is no longer supported in Android P (API level 28) and higher. The class org.apache.http.ProtocolVersion is a part of this library. To fix this issue, you will need to remove the dependency on the Apache HTTP library and replace it with a more recent library that is sup