HMS Kit Integration in Android Studio Chipmunk

Nithin KC
3 min readMay 17, 2022

--

Introduction

Android Studio is official IDE for Android Application development. It helps the developers to accelerate app development and build the highest-quality apps for every Android device. The IDE continuously releasing new versions with new features. Really It is a challenge for developers, but these features will help empower the developers to create high quality, modern apps across devices faster.

In previous article we discussed HMS Kit Integration in Android Studio Bumblebee. In this article we are going to discuss HMS Kit integration in Android Studio version Chipmunk . It is almost same as Bumblebee.

Chipmunk

Android Studio Chipmunk| 2021.2.1 released on May 09, 2022 with the following features.

  1. Compose Animation Preview
  2. CPU Profiler
  3. Build Analyzer: Check Jetifier
  4. IntelliJ Platform Update

HMS Kit Integration Process

Configuring the Maven Repository Address for the HMS Core SDK

  1. Open the build.gradle file in the root directory .

There are some changes in root level build.gradle file in Bumblebee and Chipmunk versions. buildscript removed here in new version, where we add the AppGallery Connect plugin.

So, add buildscript repositories and add the class path inside the dependencies section.

Note : No need to configure the Maven repository address in root level build.gradle

2. Open the settings.gradle file in the root directory. Few changes are there in the file in Bumblebee and Chipmunk. We can find pluginManagement and dependencyResolutionManagement there. Add maven url in both sections as mentioned in below.

Adding Build Dependencies

1. Open the app-level build.gradle file of your project.

2. Add a build dependency in the dependencies block.

3. Add the AppGallery Connect plugin configuration

That’s it.

Android Gradle plugin and Android Studio compatibility

The Android Studio build system is based on Gradle, and the Android Gradle plugin adds several features that are specific to building Android apps. The following table lists which version of the Android Gradle plugin is required for each version of Android Studio.

Conclusion

The article explained about HMS Kit integration in Android Studio Chipmunk. This way within few minutes developers can integrate HMS kits such as Account Kit, Location Kit, Map Kit, ML Kit, Awareness Kit etc. in their application and can use the features

Soon will post a new article which will explained about HMS Kit integration in Android Studio Dolphin.

Thank you.

--

--