Google Map Sdk V3.0.0 for Android Client

Kumar Himanshu
2 min readMay 21, 2020

--

Google Map Sdk V3.0.0 for Android Client is a new implementation with existing API surface i.e. all existing classes and methods will be same. Advantage of implementing this sdk are as follows:-

  • Previously, the Maps SDK for Android was made available as part of Google Play services.But now, it is distributed via a standalone static library.
  • Android 4.0–4.0.4 (“Ice Cream Sandwich”) is no longer supported.
  • Map rendering has been modernized and improved.
  • Text labels for POIs are now clickable, rather than just the icon.
  • Business POIs are now visible in indoor maps.
  • Added incident reports icons to the traffic layer, such as roadworks, crashes, and traffic jams. These show in Normal, Hybrid and Terrain mode.
  • Added support for 3D buildings with full models, e.g. Eiffel Tower.
  • Increased opacity of 3D buildings to match the Google Maps application.
  • Resolved an issue where markers were loading slowly

Installation and Implementation of New SDK

1. Download the sdk file from below link:-

https://dl.google.com/dl/geosdk/maps-sdk-3.0.0-beta.aar

https://dl.google.com/dl/geosdk/places-maps-sdk-3.0.0-beta.aar (optional)

2. Copy these aar files into app/libs folder of your project

3.In your project-level build.gradle file, add a flatDir section to the allprojects/repositories section, like below example

flatDir {
dirs 'libs'
}

4. Adjust the targetSdkVersion and compileSdkVersion to API level 28, and minSdkVersion to 16 in app-level build.gradle file

5. Add dependencies for client library in dependency section as below:-

implementation name:'maps-sdk-3.0.0-beta', ext:'aar'
implementation name:'places-maps-sdk-3.0.0-beta', ext:'aar'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.gms:play-services-basement:17.2.1'
implementation 'com.google.android.gms:play-services-base:17.2.1'
implementation 'com.google.android.gms:play-services-gcm:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'

6. Remove implementation of previous version of map if any

7. Sync gradle project

8. Change existing imports from com.google.android.gms.maps to com.google.android.libraries.maps

9. Run your code.

Happy Coding 👍👍👍

--

--

Kumar Himanshu

An enthusiastic android app developer and lead with more than 13 years of experience in corporate world