Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions maps-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ android {
namespace = "com.google.maps.android.compose.demo"
compileSdk = libs.versions.androidCompileSdk.get().toInt()

// Needed by the legacy map renderer on devices with older Google Play services.
// See the <uses-library> comment in AndroidManifest.xml.
useLibrary("org.apache.http.legacy")

defaultConfig {
Expand Down
7 changes: 7 additions & 0 deletions maps-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
android:supportsRtl="true"
android:theme="@style/Theme.AndroidMapsCompose">

<!--
Keep this even though the app uses a recent play-services-maps. The map renderer runs
inside Google Play services, and on devices with older Play services (and with the
legacy renderer) it loads org.apache.http classes through the app's class loader.
Without it, the map crashes there with NoClassDefFoundError: org/apache/http/ProtocolVersion.
See https://github.com/googlemaps/android-maps-compose/issues/1080.
-->
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
Expand Down
Loading