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

Unsupported features for Android API levels lower than 19, which cause crashes #78

Closed
d-u-a-l opened this issue Oct 5, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@d-u-a-l
Copy link

d-u-a-l commented Oct 5, 2019

Latest release uses
java.nio.charset.StandardCharsets
which available in Android starting with API level 19 (Kitkat). When I use library, no warnings about it not supporting older versions of Android (Jelly Bean, for example) were issued by Android Studio. You should change minSdk to 19 or make a workaround for API levels lower than 19

@nicolabeghin
Copy link

nicolabeghin commented Oct 5, 2019

Following, any plan for a hotfix? Thanks a lot!

AFAIK in order to maintain compatibility with lots of Android levels (<19) it makes sense to avoid using StandardCharset class, which only contains 6 constants for Charset.forName

https://github.com/openjdk-mirror/jdk7u-jdk/blob/master/src/share/classes/java/nio/charset/StandardCharsets.java

@nicolabeghin
Copy link

@srikanth-lingala pushed PR #79, please take a look if it makes sense for you, thanks!

@srikanth-lingala
Copy link
Owner

Fixed in v2.2.2 released today

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

3 participants