Alex Wilson Alex Wilson - 28 days ago 14
Java Question

Facebook Android SDK requires API 15: Android 4.0.3 or higher. Should I use tools:override to force usage?

I would rather not upgrade my Android min API level as some users are still on API 14. However Facebook requires that I upgrade to API 15 to integrate the Facebook Android SDK. Are there any advantages/disadvatages to using tools:overrideLibrary=“com.facebook” to force usage in my gradle build? What be the best practice to integrate the API?

Answer

The amount of users between API 14 and 15 is VERY small. If you take a look at the Android dashboard statistics, it's almost none.

enter image description here

According to Android Studio, it doesn't even equal to 0.1% of users.

enter image description here

enter image description here

They both end up at 97.4%.

For something that small, I wouldn't recommend changing lib and I would say you should change your mininum API.

If a user using API 14 and they don't have facebook, they won't care abou this at all.

Just my opinion.

Comments