Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sky shell doesn't build with openjdk javac 1.8. #74

Closed
@FlutterIssues

Description

@FlutterIssues

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions