Skip to content
New issue

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

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

Already on GitHub? # to your account

Support Min SDK Version : API 18 (Android 4.3 Jelly Bean) #7

Closed
ghusta opened this issue Jun 24, 2017 · 3 comments
Closed

Support Min SDK Version : API 18 (Android 4.3 Jelly Bean) #7

ghusta opened this issue Jun 24, 2017 · 3 comments
Assignees
Milestone

Comments

@ghusta
Copy link
Owner

ghusta commented Jun 24, 2017

Try to lower minSdkVersion 19 -> 18
https://developer.android.com/about/versions/android-4.3.html

General : https://developer.android.com/guide/topics/manifest/uses-sdk-element.html

@ghusta
Copy link
Owner Author

ghusta commented Jun 24, 2017

Execute gradlew lint to check code compatibility.

For example :

Call requires API level 19 (current min is 18): java.util.Objects#requireNonNull

@ghusta
Copy link
Owner Author

ghusta commented Jun 24, 2017

App Crash can be avoided with something like :

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            Objects.requireNonNull(uri);
        }

But if API version is lower, code won't be executed...

@ghusta
Copy link
Owner Author

ghusta commented Jun 24, 2017

Objects#hash could be replaced by org.apache.commons.lang3.ObjectUtils#hashCode

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant