Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minSdkVersion 16 is incorrect #24

Open
bakua opened this issue Sep 25, 2020 · 4 comments
Open

minSdkVersion 16 is incorrect #24

bakua opened this issue Sep 25, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@bakua
Copy link

bakua commented Sep 25, 2020

Your android plugin defines minSdkVersion 16. However, you include dependency on com.squareup.okhttp3:okhttp:4.2.2 which supports only Android 21+. Running on device with Android api 16 ends up with java.lang.NoClassDefFoundError: java.util.Objects exception as Objects class is not present in the OS.

@bakua bakua added the bug Something isn't working label Sep 25, 2020
@haoliu-amp
Copy link
Contributor

@bakua You're right, we will update it to 21. One question, do you need to support devices ranging from 16 - 21?

@bakua
Copy link
Author

bakua commented Nov 5, 2020

Well it is always nice being able to reach more users with a digital product. More importantly I don't know how the device segmentation looks like in emerging markets, maybe old androids make a significant portion?

Personally, I believe that since Flutter itself is 16+ then you guys want to be able to support all versions. I know that it is nice to have shiny latest okhttp there, but Amplitude is the only library I've run into that limits us to reach api 16 - 21 users.

@haoliu-amp
Copy link
Contributor

Do you know how much percent of your users are on 16-21?

@bakua
Copy link
Author

bakua commented Nov 6, 2020

Before I've migrated to flutter it was about 0.5%. Which, if you are a high revenue business can pay for a developer or two.

Looking at https://gs.statcounter.com/android-version-market-share/mobile-tablet/africa there is cca 7% of people on api 16-21. So a lot of people in this emerging market.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants