Reputation: 2482
As it is known, the minimum API level for using the Android support library is 14 now. I would like to release a new version of my app (currently minSdk 15 and targetSdk 27) to support API < 14 (down to Froyo at the minimum if possible). Why you ask? I do not plan to keep supporting for these old system versions, but rather just to fix one critical bug to help the numerous users I have on these platforms - a bug which will actually help them export their data to newer versions.
When changing the minSdk to 10 I get the following error:
Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 14 declared in library [com.android.support:appcompat-v7:27.1.1] as the library might be using APIs not available in 10 Suggestion: use a compatible library with a minSdk of at most 10, or increase this project's minSdk version to at least 14, or use tools:overrideLibrary="android.support.v7.appcompat" to force usage (may lead to runtime failures)
Anyway, here is what I considered - or a combination of the following:
What is the best approach? Is there an easier way?
Upvotes: 1
Views: 481
Reputation: 1837
I'm supporting my libraries started from API 9 (yes, Android 2.3 and up. In 2020. It's some kind of challenge for me). I've tested it with API 4 (!) and all is working great, but Material Design supporting since API 9, so I'm using the 25.4.0 version of Support Design library too which started from API 9. It's most prefer solution for me, because it allows to get only one apk for API 9-30 with Material Design which working great from API 9 to API 30, because 25.4.0 was released in June 2017 and base methods are not changing even in API 30. BTW I don't see any seriosly updated in the new support library versions to raise my min API version to 14 and of course up.
Upvotes: 0