Google Play Services will stop supporting the "Jelly Bean" platform

Google Play Services will stop supporting the "Jelly Bean" platform

Google Play officially announced that future versions of Google Play services will no longer support the Android Jelly Bean (hereinafter referred to as JB) platform, corresponding to API levels 16, 17, and 18.

[[410425]]

The JB platform was first released nine years ago, and as of July 2021, its number of active devices has fallen below 1%. In addition, Android has released many optimizations and features, but none of them have been synchronized to JB, which has increased the time developers and QA spend on new features that require special processing. Therefore, the official said that starting from August 2021, Google will no longer update Play services APKs beyond version 21.30.99 for devices running JB.

For developers, applications that support API levels 16 to 18 can continue to be built and released to devices running JB, but may encounter build errors when updating to newer SDK versions. In this regard, the official provides two suggestions:

Set the minSdkVersion value in your app's build.gradle to 19 to use API level 19 as the minimum supported API level. If you publish your app to the Play Store this way, users of devices that support a lower level than that will not be able to see or download the update. However, they will still be able to download and use the most recently released version of your app for their device.

With configuration and code management, build multiple APKs to support different minimum API levels and use different versions of Google Play services, for example by defining two different app configurations in build.gradle.

  1. productFlavors {
  2. legacy
  3. minSdkVersion 16
  4. versionCode 101 // Min API level 16, v01
  5. }
  6. current
  7. minSdkVersion 19
  8. versionCode 1901 // Min API level 19, v01
  9. }
  10. }
  11. dependencies {
  12. legacyCompile 'com.google.android.gms:play-services:16.0.0'  
  13. currentCompile 'com.google.android.gms:play-services:17.0.0'  
  14. }

For more details, please refer to its official announcement.

This article is reproduced from OSCHINA

Title of this article: Google Play Services will stop supporting the "Jelly Bean" platform

Article URL: https://www.oschina.net/news/149701/google-play-service-discontinue-support-jelly-bean

<<:  High refresh rate has become a trend: the share of 60Hz screen Android models has dropped to 40%

>>:  Detailed explanation of APT application (hand-in-hand teaching you to write ButterKnife tool)

Recommend

HTML5 gesture detection principle and implementation

Preface With the richness of hybrid applications,...

Learn the correct method to improve exposure!

My friends, I believe many of you are worried abo...

A review of the top ten public relations crisis events in 2018 (Part 1)

Today, I will use three crisis public relations t...

It’s now more justifiable to stay in bed for 5 minutes in winter!

Popular Science Times reporter Chen Jie On winter...