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

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

Closed
vanniktech opened this issue Dec 20, 2016 · 7 comments

Comments

@vanniktech
Copy link

After updating from 'me.tatarka:gradle-retrolambda:3.2.5' to 'me.tatarka:gradle-retrolambda:3.4.0' lint complains:

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

@vanniktech
Copy link
Author

Still happening with 3.6.0.

@chemouna
Copy link

chemouna commented Apr 18, 2017

Hello, I'm having the same issue on 3.6.0 version also, lint is failing because of it.

@MyDogTom
Copy link

@vanniktech Are you still using 3.2.5 or have found any workaround? I receive the same lint error after including error-prone into project.

@vanniktech
Copy link
Author

Moved on to Kotlin and the projects that are still having Lambdas are now all minSdk 19.

@PromanSEW
Copy link

PromanSEW commented Jul 19, 2017

I don't have this problem. minSdk = 15, gradle-retrolambda 3.6.0, Android Studio 2.3.3
Solution is waiting release of Android Studio 3.0, there are build-in support of Java 8 features in it

@MyDogTom
Copy link

I've found that in my case issue is not related to Retrolambda. java.util.Objects#requireNonNull is added automatically by ErrorProne compiler. In order to change this behavior, just add -XDallowBetterNullChecks=false
More details here: google/error-prone#375

@vanniktech
Copy link
Author

Oh that might be the case since I'm using error prone. Guess this can be closed then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants