Repository navigation
Sky shell doesn't build with openjdk javac 1.8. #74
Copy link
Copy link
Closed
Labels
waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
Issue by Hixie
Thursday Jul 16, 2015 at 22:26 GMT
Originally opened as https://github.com/flutter/engine/issues/31
From @PPiet on July 8, 2015 16:38
The error I get is:
[193/2246] ACTION //sky/shell:java__compile_java__javac(//build/toolchain/android:arm)
FAILED: python ../../build/android/gyp/javac.py --depfile=gen/sky/shell/java__compile_java__javac.d --classpath=\[\"../../third_party/android_tools/sdk/platforms/android-22/android.jar\"\] --classpath=@FileArg\(gen/sky/shell/java.build_config:javac:classpath\) --jar-path=gen/sky/shell/java__compile_java.initial.jar --java-srcjars=\[\] --java-srcjars=@FileArg\(gen/sky/shell/java.build_config:javac:srcjars\) --jar-excluded-classes=\[\"\*/R.class\",\ \"\*/R\#\#\*.class\",\ \"\*/Manifest.class\",\ \"\*/Manifest\#\#\*.class\"\] --chromium-code=1 ../../sky/shell/android/org/domokit/sky/shell/GestureProvider.java ../../sky/shell/android/org/domokit/sky/shell/PlatformServiceProvider.java ../../sky/shell/android/org/domokit/sky/shell/PlatformViewAndroid.java ../../sky/shell/android/org/domokit/sky/shell/ResourceExtractor.java ../../sky/shell/android/org/domokit/sky/shell/ServiceFactory.java ../../sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java ../../sky/shell/android/org/domokit/sky/shell/SkyActivity.java ../../sky/shell/android/org/domokit/sky/shell/SkyApplication.java ../../sky/shell/android/org/domokit/sky/shell/SkyMain.java ../../sky/shell/android/org/domokit/sky/shell/TracingController.java
Traceback (most recent call last):
File "../../build/android/gyp/javac.py", line 280, in <module>
sys.exit(main(sys.argv[1:]))
File "../../build/android/gyp/javac.py", line 244, in main
java_files)
File "../../build/android/gyp/javac.py", line 104, in DoJavac
input_strings=javac_cmd)
File "/usr/local/work/mojo/src/build/android/gyp/util/md5_check.py", line 30, in CallAndRecordIfStale
function()
File "../../build/android/gyp/javac.py", line 97, in Compile
stderr_filter=ColorJavacOutput)
File "/usr/local/work/mojo/src/build/android/gyp/util/build_utils.py", line 158, in CheckOutput
raise CalledProcessError(cwd, args, stdout + stderr)
util.build_utils.CalledProcessError: Command failed: ( cd /usr/local/work/mojo/src/out/android_Debug; javac -g -encoding UTF-8 -source 1.7 -target 1.7 -classpath ../../third_party/android_tools/sdk/platforms/android-22/android.jar:gen/base/base_java.jar:gen/mojo/android/system_java.jar:gen/mojo/public/interfaces/application/application_java.jar:gen/mojo/public/java/bindings.jar:gen/mojo/public/java/system.jar:gen/mojo/services/network/public/interfaces/interfaces_java.jar:gen/services/keyboard/keyboard.jar:gen/sky/services/engine/engine_java.jar:gen/sky/services/oknet/oknet.jar:gen/sky/services/intents/intents_lib.jar -d /tmp/tmpZoxfmr/classes -Xlint:unchecked ../../sky/shell/android/org/domokit/sky/shell/GestureProvider.java ../../sky/shell/android/org/domokit/sky/shell/PlatformServiceProvider.java ../../sky/shell/android/org/domokit/sky/shell/PlatformViewAndroid.java ../../sky/shell/android/org/domokit/sky/shell/ResourceExtractor.java ../../sky/shell/android/org/domokit/sky/shell/ServiceFactory.java ../../sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java ../../sky/shell/android/org/domokit/sky/shell/SkyActivity.java ../../sky/shell/android/org/domokit/sky/shell/SkyApplication.java ../../sky/shell/android/org/domokit/sky/shell/SkyMain.java ../../sky/shell/android/org/domokit/sky/shell/TracingController.java )
warning: [options] bootstrap class path not set in conjunction with -source 1.7
../../sky/shell/android/org/domokit/sky/shell/PlatformViewAndroid.java:97: error: cannot access KeyboardService
KeyboardServiceImpl.setActiveView(this);
^
class file for org.chromium.mojom.keyboard.KeyboardService not found
../../sky/shell/android/org/domokit/sky/shell/SkyActivity.java:47: error: cannot access ActivityManager
ActivityManagerImpl.setCurrentActivity(this);
^
class file for org.chromium.mojom.intents.ActivityManager not found
2 errors
1 warning
Setting the PATH to use openjdk javac 1.7 instead makes the error go away.
Copied from original issue: domokit/mojo#308
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Activity
FlutterIssues commentedon Nov 9, 2015
Thursday Jul 16, 2015 at 22:26 GMT
From @alhaad on July 8, 2015 16:40
The error I got:
Updating PATH made the error go away.
FlutterIssues commentedon Nov 9, 2015
Thursday Jul 16, 2015 at 22:26 GMT
From @viettrungluu-cr on July 10, 2015 17:53
But probably we should fix things so that it does build with 1.8.
Incidentally, monet currently doesn't build with 1.8 either, but for entirely different reasons (but it's easy enough to work around).
FlutterIssues commentedon Nov 9, 2015
Thursday Jul 16, 2015 at 22:26 GMT
From @abarth on July 12, 2015 15:20
Does this still not work? I think I fixed the errors in the original description. The one with GoogleOnceInternalInit in the stack trace is new for me.
Hixie commentedon Feb 9, 2016
@PPiet is this still an issue for you?
sethladd commentedon Sep 14, 2016
Going to close for now. Please let us know if we need to reopen.
upgrade to Dart SDK 1.24.2 (flutter#74)
github-actions commentedon Aug 17, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.