Build Fail Chromium for Android

893 views
Skip to first unread message

William Mitchell Jr

unread,
Sep 30, 2017, 12:44:29 AM9/30/17
to Chromium-dev
System: Debian Sid
Kernel: 4.12
CPU: x86_64

When building Chromium for Android, I received the following error:

../../base/android/java/src/org/chromium/base/Promise.java:91: error: cannot find symbol
        Callback<Exception> onReject = reason -> {
                                       ^
  symbol:   method metafactory(Lookup,String,MethodType,MethodType,MethodHandle,MethodType)
  location: interface LambdaMetafactory
Fatal Error: Unable to find method metafactory

[25/24804] ACTION //chrome/browser/metrics:expired_histograms_array(//build/toolchain/android:android_clang_arm)
ninja: build stopped: subcommand failed.

WM

William Mitchell Jr

unread,
Oct 7, 2017, 3:57:10 PM10/7/17
to Chromium-dev
Afiter 'git-rebase-update && gclient sync' yesterday, now building without failure but with 51 compiler warnings. I did not touch my build system.

William Mitchell Jr

unread,
Oct 16, 2017, 3:46:51 PM10/16/17
to Chromium-dev
Build failure with the same error. This time I manually re-configured java with 'update-alternatives --config java' and 'update-alternatives --config javac' and all is well.

Oleg Beletski

unread,
Oct 25, 2017, 5:09:51 AM10/25/17
to Chromium-dev
My build was failing with the same error. Reason was in not properly configured java setup.  "java" and "javac" binaries were from java 1.8 and "jar" binary was taken from 1.7 and all libraries from 1.7 as well. Please make sure that path variable point correct "jar" executable.

Satoshi Goto

unread,
Nov 3, 2017, 3:32:05 AM11/3/17
to Chromium-dev
Me too, I cannot build with 62.0.3202.84

Satoshi Goto

unread,
Nov 5, 2017, 11:49:35 PM11/5/17
to Chromium-dev
Ok, solved the problem, do this and hcange to java 8

sudo update-alternatives --config java

sudo update-alternatives --config javac

sudo update-alternatives --config jar

sudo update-alternatives --config jarsigner
sudo update-alternatives --config javaws
sudo update-alternatives --config javap

Reply all
Reply to author
Forward
0 new messages