Skip to content

Why exactly are API levels < 26 not supported? #332

Answered by mannodermaus
bddckr asked this question in Q&A
Discussion options

You must be logged in to vote

The reason why you cannot run JUnit Jupiter tests below API 26 is that JUnit 5 uses several APIs that aren't available on devices shipping with Java 7 or older, and the fact that these APIs aren't completely covered by core library desugaring either. For example, the upcoming release candidate for JUnit 5.11 will fail right on discovery because Class#getTypeName cannot be found on older devices. Because of this, it's not a matter of excluding only some functionality since the main entry point fails immediately.

That being said, I'd love to see this sample project of yours if you can share it!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bddckr
Comment options

Answer selected by bddckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants