






















There was recent news about 47% decline in the number of apps on Google Play Store.
As a hobby Android developer, who has been developing MusicSync, a Google Play Music + Podcast replacement for the last five years, I thought I would share my experience of maintaining an Android app. And why this reduction in the number of apps is not surprising to me.
I have several side-projects that run on a backend server with a limited web UI, and it is much less effort to maintain them.
However, maintaining an Android app as a side-project is a more involved affair. And here are some of the problems I have faced.
Kotlin is clearly the preferred language of development if you are starting a new Android project in 2025. But what if you are maintaining a hobby project written in Java? You will start seeing incompatibility when your dependencies are re-written in Kotlin.
To their credit, Android documentation still gives code samples in both Java and Kotlin.
Google has a habit of making breaking changes to its Android libraries. Here’s a list of some of the libraries that I have used in my app and the issues I have faced.
Android ships with MediaPlayer. Google recommends its open-source library ExoPlayer. ExoPlayer V1 was last released in 2017. It was replaced with backward-incompatible ExoPlayer V2 which was last released in July 2024. And now, it has now been replaced with backward-incompatible media3. The Google provided migration script is far from being complete.
Further, media3 does not follow semantic versioning, minor version upgrades has resulted in breaking API changes.
Google’s own Auth library had a bug and sign-in was broken for API 26 and lower for months.
| |
Google Ads library v24 dropped support for Android API 21. According to official Google statistics, API 21 is used by 0.1% (~4 million) users. The rationale behind this has been left unexplained.
Material 2 was deprecated for Material 3. No clear migration guide was provided. I tried to upgrade and some components like Sliders won’t look good. Why? I don’t know, and I was never able to figure out the mystic. It does not help that most documentation now refers to Jetpack Compose which I cannot use!
So, for the near term, Java-based codebase are likely stuck with Material 2.
Every major release of Android makes breaking changes that requires developer effort
Several popular third-party have been deprecated or are no longer maintained.
Picasso was great for image loading and has been deprecated. It has been replaced with coil but the upgrade is not trivial.
Glide an alternative to Picasso was last released in Sep 2023.
OkHttp which even Android uses internally for implementing HttpURLConnection has not seen a stable release since Oct 2023, the last stable release was 4.12.0 and even the last alpha release was in April 2024.
OkHttp 4.12.0 does not support Happy Eyeballs which is a major issue with IPv6 networks.
EventBus was the de-facto event passing library for Android. And it is unmaintained now.
RateThisApp was good to get app ratings, and then it was abandoned.
I don’t blame the maintainers here. If you use an open-source library, you have to be prepared for the fact that it may not be maintained. I am just pointing out, how some of the obvious boilerplate tasks that one requires for building an Android app are suddenly in a limbo.
Android has two versioning schemes, Android API version is for developers and Android version for marketing.
For example, Android 11 is API 30, Android 12 is API 31 as well as 32(!), Android 13 is API 33, Android 14 is API 34. The developer documents would reference one scheme or the other or sometimes both! And you are supposed to memorize the mappings while trying to debug issues using GitHub issues or StackOverflow. It just adds unnecessary friction and confusion.
There are multiple versions in an Android app, all tightly coupled with each other.
minSdkVersion and targetSdkVersion of the appsourceCompatibility and targetCompatibilityYou might think that all updates are optional, but they aren’t
sourceCompatibility and targetCompatibility
requires upgrading Gradle (and hence, Android Studio)minSdkVersion and targetSdkVersionYou see how you are forced to upgrade almost everything or nothing?
And what if you decide to not upgrade any of these?
Well, your app will get
delisted
if the targetSdkVersion is too old.
Compared to server-side development, Android development requires a bit more efforts to maintain. So, if you are planning to build an Android app as a hobby, keep the ongoing maintenance cost in mind.
After this article ended up on the front page of Hacker News, Two new items came out during those discussions that are worth mentioning.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。