Discussion:
[chromium-discuss] Chrome chrashes on Android Oreo - Intel(x86_64) Platform
s***@gmail.com
2018-10-17 12:14:29 UTC
Permalink
Below link is followed to the the chrome apk for Android platform

https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md

the command used in setting by the build is

gn gen --args='target_os="android" arget_cpu = "*x64*"' out/Default


But chrome crashes while launching with the below error.

E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate
application org.chromium.chrome.browser.MonochromeApplication:
java.lang.ClassNotFoundException: Didn't find class
"org.chromium.chrome.browser.MonochromeApplication" on path:
DexPathList[[zip file
"/system/app/chromium/chromium.apk"],nativeLibraryDirectories=[/system/app/chromium/lib/x86,
/system/app/chromium/chromium.apk!/lib/x86, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp]]

is there prebuilt apk available for chrome on* Intel x86_64 platfrom
(Android Oreo)*
--
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.
Torne (Richard Coles)
2018-10-17 15:05:04 UTC
Permalink
Which target are you building and installing? there are a number of
different APKs available. Are you using monochrome_public_apk?
It also looks like you are preinstalling it into the system - how are you
doing that?
Post by s***@gmail.com
Below link is followed to the the chrome apk for Android platform
https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md
the command used in setting by the build is
gn gen --args='target_os="android" arget_cpu = "*x64*"' out/Default
But chrome crashes while launching with the below error.
E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate
java.lang.ClassNotFoundException: Didn't find class
DexPathList[[zip file
"/system/app/chromium/chromium.apk"],nativeLibraryDirectories=[/system/app/chromium/lib/x86,
/system/app/chromium/chromium.apk!/lib/x86, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp]]
is there prebuilt apk available for chrome on* Intel x86_64 platfrom
(Android Oreo)*
--
--
http://groups.google.com/a/chromium.org/group/chromium-discuss
--
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.
s***@gmail.com
2018-10-18 09:35:08 UTC
Permalink
Our target Platform is *Oreo 8.1.0* and it is Intel *x86_64*.

Below are the commands we executed to get the chrome apk (
*monochrome_public_apk*). ubuntu linux is used for the build environment.

==============================================================================
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

export PATH="$PATH:~/depot_tools"

mkdir ~/chromium && cd ~/chromium
fetch --nohooks android

cd src

echo "target_os = [ 'android' ]" >> ../.gclient

gclient sync

build/install-build-deps-android.sh

gclient runhooks

gn gen --args='target_os="android" target_cpu="x64"' out/Default

autoninja -C out/Default monochrome_public_apk

================================================================================

We are preinstalling the generated apk into the system.
Chrome is getting installed successfully, but while launching the chrome it
fails with the below mentioned error.

$am start -a android.intent.action.VIEW -d http://google.com

E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate
application org.chromium.chrome.browser.MonochromeApplication:
java.lang.ClassNotFoundException: Didn't find class
"org.chromium.chrome.browser.MonochromeApplication" on path:
DexPathList[[zip file
"/system/app/chromium/chromium.apk"],nativeLibraryDirectories=[/system/app/chromium/lib/x86,
/system/app/chromium/chromium.apk!/lib/x86, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp]]
Post by s***@gmail.com
Below link is followed to the the chrome apk for Android platform
https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md
the command used in setting by the build is
gn gen --args='target_os="android" arget_cpu = "*x64*"' out/Default
But chrome crashes while launching with the below error.
E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate
java.lang.ClassNotFoundException: Didn't find class
DexPathList[[zip file
"/system/app/chromium/chromium.apk"],nativeLibraryDirectories=[/system/app/chromium/lib/x86,
/system/app/chromium/chromium.apk!/lib/x86, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp]]
is there prebuilt apk available for chrome on* Intel x86_64 platfrom
(Android Oreo)*
--
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.
Torne (Richard Coles)
2018-10-18 15:50:19 UTC
Permalink
That all seems reasonable. Is the class actually present in the APK?
(dexdump from the Android SDK can show you). If not, is it present in one
of the .jar files that the dex is built from? (various locations in
out/Default, "jar tf" can list the contents of a jar)
Post by s***@gmail.com
Our target Platform is *Oreo 8.1.0* and it is Intel *x86_64*.
Below are the commands we executed to get the chrome apk (
*monochrome_public_apk*). ubuntu linux is used for the build environment.
==============================================================================
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH="$PATH:~/depot_tools"
mkdir ~/chromium && cd ~/chromium
fetch --nohooks android
cd src
echo "target_os = [ 'android' ]" >> ../.gclient
gclient sync
build/install-build-deps-android.sh
gclient runhooks
gn gen --args='target_os="android" target_cpu="x64"' out/Default
autoninja -C out/Default monochrome_public_apk
================================================================================
We are preinstalling the generated apk into the system.
Chrome is getting installed successfully, but while launching the chrome
it fails with the below mentioned error.
$am start -a android.intent.action.VIEW -d http://google.com
E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate
java.lang.ClassNotFoundException: Didn't find class
DexPathList[[zip file
"/system/app/chromium/chromium.apk"],nativeLibraryDirectories=[/system/app/chromium/lib/x86,
/system/app/chromium/chromium.apk!/lib/x86, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp]]
Post by s***@gmail.com
Below link is followed to the the chrome apk for Android platform
https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md
the command used in setting by the build is
gn gen --args='target_os="android" arget_cpu = "*x64*"' out/Default
But chrome crashes while launching with the below error.
E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate
java.lang.ClassNotFoundException: Didn't find class
DexPathList[[zip file
"/system/app/chromium/chromium.apk"],nativeLibraryDirectories=[/system/app/chromium/lib/x86,
/system/app/chromium/chromium.apk!/lib/x86, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp, /system/lib, /vendor/lib,
/system/lib/vndk, /system/lib/vndk-sp]]
is there prebuilt apk available for chrome on* Intel x86_64 platfrom
(Android Oreo)*
--
--
http://groups.google.com/a/chromium.org/group/chromium-discuss
--
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.
Loading...