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

User fission growth tips!

There is an old saying: Three incompetent general...

4 ways to pull seed users

It’s a relatively new product and I don’t think t...

iPad Pro or MacBook? If you are undecided, please read this

The launch of Apple's iPad Pro has sparked a ...

6 techniques to help you promote your products step by step

If any product wants to develop sustainably, it m...

Can you make a fighter jet out of wood? It's true!

Plants have different choices. Some trees grow 5 ...

When your period coincides with an exam or competition, you can either...

When your period comes, life or death is unpredic...

What is the main function of Apple Pay?

After nearly two years of release and various twi...

How to quickly get 1000 followers on Douyin?

It is not difficult to achieve the threshold of o...

Fix now! Unix bug puts all Linux systems at risk

[51CTO Quick Translation] Researchers have discov...