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

When lung cancer comes, your legs may be the first to sound the alarm →

Lung cancer is a very common malignant tumor worl...

Douyin e-commerce live broadcast review manual

A few days ago, I posted a message on WeChat Mome...

How to write the copy for May Fourth Youth Day? Share 15 articles!

According to the latest World Health Organization...

Lexus is going to play a trick and use the crossover SUV as the flagship

When it comes to the word flagship, the models th...

Strategies to break through the bottleneck in catering marketing!

Let’s first talk about the formation and position...

With it, it is possible to watch the moon landing live in 4K ultra-clear

When you look up at the vast universe, have you e...

App promotion channels, Sina Weibo Nine-square grid promotion new method

I believe most CPs already know about the very po...

Quarks are "confined"? It turns out that humans can't make them "appear"...

In 1974, Ting Zhaozhong and Richter discovered th...

A brief discussion on RabbitMQ's delay queue

Part 01. What is a delay queue? Delay queues repr...

Thailand passes bill to legalize same-sex marriage (full text)

Thailand's cabinet approves bill to legalize ...