Skip to content

Adds Java EE module to SDK manager calls - #16035

Merged
tvolkert merged 1 commit into
flutter:masterfrom
lukef:lf-sdkmanager-fix
Apr 3, 2018
Merged

tvolkert merged 1 commit into
flutter:masterfrom
lukef:lf-sdkmanager-fix

Conversation

@lukef

@lukef lukef commented Mar 28, 2018 •

Copy link
Copy Markdown
Contributor

This PR adds an environment variable to the Android SDK Manager calls that re-enables the deprecated java EE module to allow SDK manager to run. This is a workaround and the fix should be done in the Android tools. However, without that fix, Flutter will be broken.

Fixes: #16025

See:
https://bugs.openjdk.java.net/browse/JDK-8189188
https://stackoverflow.com/questions/47150410/failed-to-run-sdkmanager-list-android-sdk-with-java-9

@tvolkert tvolkert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tvolkert
tvolkert merged commit 0c18d29 into flutter:master Apr 3, 2018
@cbracken

cbracken commented Apr 3, 2018 •

Copy link
Copy Markdown
Member

On my machine, this triggers the following error, which causes #16025 to return LicensesAccepted.unknown:

% SDKMANAGER_OPTS="--add-modules java.se.ee" /Users/cbracken/Library/Android/sdk/tools/bin/sdkmanager --licenses
Unrecognized option: --add-modules
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit

A run of sdkmanager --version returns 26.1.1 for me.

@tvolkert

tvolkert commented Apr 4, 2018

Copy link
Copy Markdown
Contributor

I get the same error with this change. I'm going to revert. @lukef can you repro the problem, then re-submit the patch with a version that works in all environments?

@tvolkert

tvolkert commented Apr 4, 2018

Copy link
Copy Markdown
Contributor

Revert PR: #16227

tvolkert added a commit that referenced this pull request Apr 4, 2018
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✗ Android license status unknown.

4 participants