Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

java.lang.ClassNotFoundException: Didn't find class "org.chromium.device.sensors.PlatformSensorProvider" #11

Open
jackxuechen opened this issue Sep 28, 2021 · 2 comments

Comments

@jackxuechen
Copy link

when h5 has video

java.lang.ClassNotFoundException: Didn't find class "org.chromium.device.sensors.PlatformSensorProvider" on path: DexPathList[[dex file "/data/data/com.ridi.awdemo/code_cache/.overlay/base.apk/classes2.dex", zip file "/data/app/~~CO6rrmjpsJUS_RwBDlvXxA==/com.ridi.awdemo--iTFBJk4w45C3Nx9UKL3OQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~CO6rrmjpsJUS_RwBDlvXxA==/com.ridi.awdemo--iTFBJk4w45C3Nx9UKL3OQ==/lib/arm64, /data/app/~~CO6rrmjpsJUS_RwBDlvXxA==/com.ridi.awdemo--iTFBJk4w45C3Nx9UKL3OQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64, /system/product/lib64, /vendor/lib64]]

@roaigen-robot
Copy link

I found PlatformSensorProvider(and PlatformSensor) in chromium repo
Modifying copy.js to copy sensor folder into target could make work.

 {
  name: 'services/sensors',
  action: Action.COPY,
  src: [
    'src/services/device/generic_sensor/android/java/src/org/chromium/device/sensors'
  ],
  dest: 'src/main/java/org/chromium/services/sensors',
}

Not tested. Please make pull request if it works

@DavinAhn
Copy link
Contributor

Hmm... it still crashes. (Test page: https://tekeye.uk/html/html5-video-test-page)

Let's check again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants