How to resolve WARNING - for Google map version 1 not available in Android 11

Viewed 3906

App bundles or APKs in this release use version 1 of the Google Maps SDK, which is not available on Android 11 or higher. Remove this dependency from your app. Google Play may remove support for version 1 of the Google Maps SDK in the future.

We have already migrated to Maps API V2, hence functionality wise there should not be any issues.

3 Answers

I had the same issue even though we have been using latest Maps SDK for Android for years. I had to remove this entry from AndroidManifest.xml

<uses-library android:name="com.google.android.maps" />

In the app's Manifest:

Remove:

<uses-library android:name="com.google.android.maps" />

Add these lines above the <application ... />:

 <!--
    Android 11 package visibility changes require that apps specify which
    set of other packages on the device that they can access. Since this
    sample uses Google Maps, specifying the Google Maps package name is
    required so that the buttons on the Map toolbar launch the Google Maps
    app.
-->
<queries>
    <package android:name="com.google.android.apps.maps" />
</queries>

Found those on the official Google's code sample: https://github.com/googlemaps/android-samples/blob/main/ApiDemos/java/app/src/main/AndroidManifest.xml

I'm facing the same 'problem'. But I think it's a false positive. I removed everything from v1 and used v2 for a long time now. Probably best to create a ticket at Google for this.

Related