Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

How to suppress the “Avoid using bundled version of Google Play services SDK” warning?

  • 0

I’m using the Google Play services in my Android app so I have the dependency in my build.gradle.

compile 'com.google.android.gms:play-services:10.2.1'

But Android Studio shows a warning for it: Avoid using bundled version of Google Play services SDK.

Android warning

What does this warning mean? How should I avoid it? I’ve googled a lot without finding much related info.

Share This Post
Share
  1. In versions of Google Play services prior to 6.5, you had to compile the entire package of APIs into your app. In some cases, doing so made it more difficult to keep the number of methods in your app (including framework APIs, library methods, and your own code) under the 65,536 limit. From version 6.5, you can instead selectively compile Google Play service APIs into your app

    inside compile com.google.android.gms:play-services:12.0.0 contains alot of dependencies.. see below.. using play-services may cause dex problem and heavy app. Select only which want do you really depends to 🙂

    EDIT Above version is already deprecated. They use individual versioning. Please refer Link Below

    Google Play Service – https://developers.google.com/android/guides/setup
    Firebase – https://firebase.google.com/docs/android/setup

    • 0
Leave an answer

Leave an answer

Browse

close