Skip to content

Java version error #57

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

Closed
atipijasin opened this issue Sep 4, 2020 · 3 comments
Closed

Java version error #57

atipijasin opened this issue Sep 4, 2020 · 3 comments

Comments

@atipijasin
Copy link

Hello,
we are using this image to run tests on our CI, we are using Robolectric 4.4 in our tests. Since we upgraded to Android SDK 29 the following error occurs:
java.lang.UnsupportedOperationException: Failed to create a Robolectric sandbox: Android SDK 29 requires Java 9 (have Java 8)
We noticed in the Dockerfile that openjdk-8-jdk is being used, are we missing something?

@jangrewe
Copy link
Owner

jangrewe commented Oct 4, 2020

I'm not really sure what the best path is here, as there's no openjdk-9-jdk package, and Java 11 will only be supported "soon" (Android Studio 4.2, it seems).

This comment provides some alternatives: https://stackoverflow.com/a/59649406

I'll see if using Java 11 works for my projects, then i'll update the image.

@jangrewe
Copy link
Owner

jangrewe commented Oct 4, 2020

Sorry, all the stuff i read points to Java 8 still being the right version to use. For the sake of compatibility, i will stick to that version. Maybe the comment linked above is of help to you.

@jangrewe jangrewe closed this as completed Oct 4, 2020
@jangrewe
Copy link
Owner

jangrewe commented Oct 4, 2020

Quick note: i've created a new tag/release for API level 30, and that's using OpenJDK 11

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

Successfully merging a pull request may close this issue.

2 participants