tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
84.03k stars 2.53k forks source link

example just shows blank page (android 8.1, WSL2 Ubuntu) #8566

Open fr-an-k opened 9 months ago

fr-an-k commented 9 months ago

Describe the bug

I tried following https://beta.tauri.app/guides/ and CLI instructions using the yarn route; everything compiles and runs but just shows a white page.

Reproduction

No response

Expected behavior

I expect to see some kind of example. The whole process also seems like a lot of libraries and effort for just a simple JNI webview. It would be nice if it's explained why this is the case.

Full tauri info output

WARNING: no lock files found, defaulting to npm

[✔] Environment
    - OS: Ubuntu 22.04 X64
    ✔ webkit2gtk-4.1: 2.42.3
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.10.0
    - yarn: 1.22.19
    - npm: 10.2.3

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.20
    - tauri-build [RUST]: 2.0.0-alpha.13
    - wry [RUST]: 0.35.2
    - tao [RUST]: 0.24.0
    - tauri-cli [RUST]: 2.0.0-alpha.20
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.20

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/

Stack trace

Android (8.1):

Culprit seems to be: No such method for getDefinedWebViewPackageName: java.lang.NoSuchMethodException: getDefinedWebViewPackageName []

2024-01-08 00:57:13.232  1092-1274  ActivityManager         system_server                        I  START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.tauri.tauri_app/.MainActivity bnds=[475,803][625,990]} from uid 10016
2024-01-08 00:57:13.247  1092-1136  DuraSpeed/a             system_server                        D  switchState, currentPackage = com.tauri.tauri_app, event = 1004
2024-01-08 00:57:13.261  1092-1274  ActivityManager         system_server                        I  Start proc 27352:com.tauri.tauri_app/u0a95 for activity com.tauri.tauri_app/.MainActivity
2024-01-08 00:57:13.267   402-402   BufferQueueConsumer     surfaceflinger                       I  [Splash Screen com.tauri.tauri_app#0](this:0x7143f64000,id:168,api:0,p:-1,c:402) setConsumerName: Splash Screen com.tauri.tauri_app#0
2024-01-08 00:57:13.267   402-402   BufferQueueConsumer     surfaceflinger                       I  [Splash Screen com.tauri.tauri_app#0](this:0x7143f64000,id:168,api:0,p:-1,c:402) setDefaultBufferSize: width=800 height=1280
2024-01-08 00:57:13.280   402-438   BufferQueueProducer     surfaceflinger                       I  [Splash Screen com.tauri.tauri_app#0](this:0x7143f64000,id:168,api:2,p:1092,c:402) connect(P): api=2 producer=(1092:system_server) producerControlledByApp=false
2024-01-08 00:57:13.318  1092-1274  WindowManager           system_server                        V  Set focused app to: AppWindowToken{5bcac5e token=Token{79824ba ActivityRecord{b9ee1e5 u0 com.tauri.tauri_app/.MainActivity t95}}} old focus=AppWindowToken{b95cc8a token=Token{d0e06f5 ActivityRecord{704c2c u0 com.android.launcher3/.Launcher t64}}} moveFocusNow=true
2024-01-08 00:57:13.325   397-416   vendor.med...r@1.1-impl ven...ek.hardware.power@1.1-service  I  notifyAppState pack:com.tauri.tauri_app, act:com.tauri.tauri_app.MainActivity, pid:27352, state:1
2024-01-08 00:57:13.328   397-415   libPerfService          ven...ek.hardware.power@1.1-service  I  [perfNotifyAppState] foreground:com.tauri.tauri_app, pid:27352
2024-01-08 00:57:13.341   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.50 cannot be handled by hwcomposer
2024-01-08 00:57:13.357   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.74 cannot be handled by hwcomposer
2024-01-08 00:57:13.373   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.87 cannot be handled by hwcomposer
2024-01-08 00:57:13.388   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.94 cannot be handled by hwcomposer
2024-01-08 00:57:13.404   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.98 cannot be handled by hwcomposer
2024-01-08 00:57:13.420   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:1.00 cannot be handled by hwcomposer
2024-01-08 00:57:13.574 27352-27357 zygote64                com.tauri.tauri_app                  I  Do partial code cache collection, code=30KB, data=24KB
2024-01-08 00:57:13.574 27352-27357 zygote64                com.tauri.tauri_app                  I  After code cache collection, code=30KB, data=24KB
2024-01-08 00:57:13.574 27352-27357 zygote64                com.tauri.tauri_app                  I  Increasing code cache capacity to 128KB
2024-01-08 00:57:13.590 27352-27352 AppCompatDelegate       com.tauri.tauri_app                  D  Checking for metadata for AppLocalesMetadataHolderService : Service not found
2024-01-08 00:57:13.746 27352-27352 SurfaceFactory          com.tauri.tauri_app                  I  [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@8f8cdc7
2024-01-08 00:57:13.753 27352-27352 WindowClient            com.tauri.tauri_app                  D  Add to mViews: DecorView@36c992[MainActivity], this = android.view.WindowManagerGlobal@1aa7f63
2024-01-08 00:57:13.755 27352-27352 OpenGLRenderer          com.tauri.tauri_app                  D  Dumper init 4 threads <0x7de2535700>
2024-01-08 00:57:13.755 27352-27352 OpenGLRenderer          com.tauri.tauri_app                  D  <com.tauri.tauri_app> is running.
2024-01-08 00:57:13.756 27352-27352 OpenGLRenderer          com.tauri.tauri_app                  D  <com.tauri.tauri_app> setHwuiLog: debug.hwui.anr=
2024-01-08 00:57:13.758 27352-27379 OpenGLRenderer          com.tauri.tauri_app                  D  HWUI GL Pipeline
2024-01-08 00:57:13.762 27352-27352 ViewRootIm...nActivity] com.tauri.tauri_app                  D  hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
2024-01-08 00:57:13.767 27352-27352 PhoneWindow             com.tauri.tauri_app                  V  DecorView setVisiblity: visibility = 0, Parent = ViewRoot{1fa9760 com.tauri.tauri_app/com.tauri.tauri_app.MainActivity,ident = 0}, this = DecorView@36c992[MainActivity]
2024-01-08 00:57:13.793  1092-2937  WindowManager           system_server                        I  Relayout Window{ffeb5f8 u0 com.tauri.tauri_app/com.tauri.tauri_app.MainActivity}: oldVis=4 newVis=0 focusMayChange = true
2024-01-08 00:57:13.795   402-402   BufferQueueConsumer     surfaceflinger                       I  [com.tauri.tauri_app/com.tauri.tauri_app.MainActivity#0](this:0x7143fa8000,id:169,api:0,p:-1,c:402) setConsumerName: com.tauri.tauri_app/com.tauri.tauri_app.MainActivity#0
2024-01-08 00:57:13.796   402-402   BufferQueueConsumer     surfaceflinger                       I  [com.tauri.tauri_app/com.tauri.tauri_app.MainActivity#0](this:0x7143fa8000,id:169,api:0,p:-1,c:402) setDefaultBufferSize: width=800 height=1280
2024-01-08 00:57:13.797  1092-2937  WindowManager           system_server                        V  Changing focus from null to Window{ffeb5f8 u0 com.tauri.tauri_app/com.tauri.tauri_app.MainActivity} Callers=com.android.server.wm.WindowManagerService.relayoutWindow:2175 com.android.server.wm.Session.relayout:239 android.view.IWindowSession$Stub.onTransact:286 com.android.server.wm.Session.onTransact:163 
2024-01-08 00:57:13.797  1092-2937  WindowManager           system_server                        D  Input focus has changed to Window{ffeb5f8 u0 com.tauri.tauri_app/com.tauri.tauri_app.MainActivity}
2024-01-08 00:57:13.800  1092-1119  WindowManager           system_server                        I  Focus moving from null to Window{ffeb5f8 u0 com.tauri.tauri_app/com.tauri.tauri_app.MainActivity}
2024-01-08 00:57:13.806 27352-27352 Surface                 com.tauri.tauri_app                  D  Surface::allocateBuffers(this=0x7dd500f000)
2024-01-08 00:57:13.807 27352-27352 RenderThread            com.tauri.tauri_app                  W  type=1400 audit(0.0:1440): avc: denied { search } for name="clients" dev="debugfs" ino=6282 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:debugfs_ion:s0 tclass=dir permissive=0
2024-01-08 00:57:13.815 27352-27379 zygote64                com.tauri.tauri_app                  I  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2024-01-08 00:57:13.815 27352-27379 OpenGLRenderer          com.tauri.tauri_app                  I  Initialized EGL, version 1.4
2024-01-08 00:57:13.815 27352-27379 OpenGLRenderer          com.tauri.tauri_app                  D  Swap behavior 2
2024-01-08 00:57:13.828 27352-27379 OpenGLRenderer          com.tauri.tauri_app                  D  [init] completed
2024-01-08 00:57:13.828 27352-27379 HWUIExtension           com.tauri.tauri_app                  D  MTKProgramCache.init: enable enhancement 1
2024-01-08 00:57:13.828 27352-27379 HWUIExtension           com.tauri.tauri_app                  I  Get disable program binary service property (0)
2024-01-08 00:57:13.828 27352-27379 HWUIExtension           com.tauri.tauri_app                  I  Initializing program atlas...
2024-01-08 00:57:13.829 27352-27379 ProgramBinary/Service   com.tauri.tauri_app                  I  ProgramBinaryService client side disable debugging.
2024-01-08 00:57:13.829 27352-27379 ProgramBinary/Service   com.tauri.tauri_app                  I  ProgramBinaryService client side disable binary content debugging.
2024-01-08 00:57:13.829 27352-27379 ProgramBinary/Service   com.tauri.tauri_app                  D  BpProgramBinaryService.getReady
2024-01-08 00:57:13.829 27352-27379 ProgramBinary/Service   com.tauri.tauri_app                  D  zhiyin- 1 BpProgramBinaryService::getReady()
2024-01-08 00:57:13.829 27352-27379 ProgramBinary/Service   com.tauri.tauri_app                  D  zhiyin- 2 BpProgramBinaryService::getReady()
2024-01-08 00:57:13.829 27352-27379 ProgramBinary/Service   com.tauri.tauri_app                  D  BpProgramBinaryService.getProgramBinaryData
2024-01-08 00:57:13.829 27352-27379 HWUIExtension           com.tauri.tauri_app                  I  Program binary detail: Binary length is 314156, program map length is 104.
2024-01-08 00:57:13.829 27352-27379 HWUIExtension           com.tauri.tauri_app                  I  Succeeded to mmap program binaries. File descriptor is 69, and path is /dev/ashmem.
2024-01-08 00:57:13.829 27352-27379 HWUIExtension           com.tauri.tauri_app                  I  No need to use file discriptor anymore, close fd(69).
2024-01-08 00:57:13.829 27352-27379 HWUIExtension           com.tauri.tauri_app                  D  Dumper init 4 threads <0x7dd50ea540>
2024-01-08 00:57:13.830 27352-27379 HWUIExtension           com.tauri.tauri_app                  D  <com.tauri.tauri_app> is running.
2024-01-08 00:57:13.830 27352-27379 HWUIExtension           com.tauri.tauri_app                  D  Initializing program cache from 0x0, size = -1
2024-01-08 00:57:13.830 27352-27379 Surface                 com.tauri.tauri_app                  D  Surface::connect(this=0x7dd500f000,api=1)
2024-01-08 00:57:13.831   402-438   BufferQueueProducer     surfaceflinger                       I  [com.tauri.tauri_app/com.tauri.tauri_app.MainActivity#0](this:0x7143fa8000,id:169,api:1,p:27352,c:402) connect(P): api=1 producer=(27352:com.tauri.tauri_app) producerControlledByApp=true
2024-01-08 00:57:13.842 27352-27379 HWUIExtension           com.tauri.tauri_app                  D  MTKProgramCache.generateProgram: 0
2024-01-08 00:57:13.843 27352-27379 HWUIExtension           com.tauri.tauri_app                  D  createProgram 0x0000000000000000, binary 0x7de015f000, length 10736, format 37168 within 858ns
2024-01-08 00:57:13.859  1092-1119  ActivityManager         system_server                        I  Displayed com.tauri.tauri_app/.MainActivity: +608ms
2024-01-08 00:57:13.861 27352-27352 WebViewFactory          com.tauri.tauri_app                  E  No such method for getDefinedWebViewPackageName: java.lang.NoSuchMethodException: getDefinedWebViewPackageName []
2024-01-08 00:57:13.879 27352-27352 WebViewFactory          com.tauri.tauri_app                  I  Loading com.android.webview version 61.0.3163.98 (code 316409850)
2024-01-08 00:57:13.898   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.89 cannot be handled by hwcomposer
2024-01-08 00:57:13.914   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.79 cannot be handled by hwcomposer
2024-01-08 00:57:13.920 27352-27352 cr_LibraryLoader        com.tauri.tauri_app                  I  Time to load native libraries: 4 ms (timestamps 2405-2409)
2024-01-08 00:57:13.930   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.68 cannot be handled by hwcomposer
2024-01-08 00:57:13.941 27352-27357 zygote64                com.tauri.tauri_app                  I  Do partial code cache collection, code=61KB, data=38KB
2024-01-08 00:57:13.942 27352-27357 zygote64                com.tauri.tauri_app                  I  After code cache collection, code=61KB, data=38KB
2024-01-08 00:57:13.942 27352-27357 zygote64                com.tauri.tauri_app                  I  Increasing code cache capacity to 256KB
2024-01-08 00:57:13.946   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.57 cannot be handled by hwcomposer
2024-01-08 00:57:13.962   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.47 cannot be handled by hwcomposer
2024-01-08 00:57:13.978   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.36 cannot be handled by hwcomposer
2024-01-08 00:57:13.990 27352-27352 chromium                com.tauri.tauri_app                  I  [INFO:library_loader_hooks.cc(136)] Chromium logging enabled: level = 0, default verbosity = 0
2024-01-08 00:57:13.990 27352-27377 RustStdoutStderr        com.tauri.tauri_app                  I  [INFO:library_loader_hooks.cc(136)] Chromium logging enabled: level = 0, default verbosity = 0
2024-01-08 00:57:13.991 27352-27352 cr_LibraryLoader        com.tauri.tauri_app                  I  Expected native library version number "61.0.3163.98", actual native library version number "61.0.3163.98"
2024-01-08 00:57:13.994   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.26 cannot be handled by hwcomposer
2024-01-08 00:57:14.007 27352-27386 cr_ChildProcLH          com.tauri.tauri_app                  W  Create a new ChildConnectionAllocator with package name = com.android.webview, sandboxed = true
2024-01-08 00:57:14.010   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.15 cannot be handled by hwcomposer
2024-01-08 00:57:14.011 27352-27352 cr_BrowserStartup       com.tauri.tauri_app                  I  Initializing chromium process, singleProcess=false
2024-01-08 00:57:14.025   402-402   Layer                   surfaceflinger                       W  [Splash Screen com.tauri.tauri_app#0] opaque layer with plane alpha:0.05 cannot be handled by hwcomposer
2024-01-08 00:57:14.028  1092-2937  ActivityManager         system_server                        I  Start proc 27387:com.android.webview:sandboxed_process0/u0i2 for webview_service com.tauri.tauri_app/org.chromium.content.app.SandboxedProcessService0
2024-01-08 00:57:14.039 27352-27352 tauri.tauri_app         com.tauri.tauri_app                  W  type=1400 audit(0.0:1441): avc: denied { read } for name="vmstat" dev="proc" ino=4026532106 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
2024-01-08 00:57:14.042   402-439   BufferQueueProducer     surfaceflinger                       I  [Splash Screen com.tauri.tauri_app#0](this:0x7143f64000,id:168,api:2,p:1092,c:402) disconnect(P): api 2
2024-01-08 00:57:14.057   402-402   BufferQueueConsumer     surfaceflinger                       I  [Splash Screen com.tauri.tauri_app#0](this:0x7143f64000,id:168,api:2,p:-1,c:-1) disconnect(C)
2024-01-08 00:57:14.057   402-402   BufferQueue             surfaceflinger                       I  [Splash Screen com.tauri.tauri_app#0](this:0x7143f64000,id:168,api:2,p:-1,c:-1) ~BufferQueueCore
2024-01-08 00:57:14.089 27352-27412 cr_CrashFileManager     com.tauri.tauri_app                  W  /data/user/0/com.tauri.tauri_app/cache/WebView/Crash Reports does not exist or is not a directory
2024-01-08 00:57:14.233 27352-27386 cr_LibraryLoader        com.tauri.tauri_app                  I  Using linker: org.chromium.base.library_loader.ModernLinker
2024-01-08 00:57:14.234 27352-27411 cr_media                com.tauri.tauri_app                  W  Requires BLUETOOTH permission
2024-01-08 00:57:14.295  1594-1598  GasService              ged_srv                              D  pkg a:[com.tauri.tauri_app] [D] pid:27352 uid:10095 audio:0,_s:0
2024-01-08 00:57:14.375 27352-27377 RustStdoutStderr        com.tauri.tauri_app                  I  Failed to request http://172.21.92.113:1420/: error sending request for url (http://172.21.92.113:1420/): error trying to connect: tcp connect error: No route to host (os error 113)
2024-01-08 00:57:14.383 27352-27426 AudioCapabilities       com.tauri.tauri_app                  W  Unsupported mime audio/x-adpcm-ms
2024-01-08 00:57:14.385 27352-27426 AudioCapabilities       com.tauri.tauri_app                  W  Unsupported mime audio/x-adpcm-dvi-ima
2024-01-08 00:57:14.386 27352-27426 AudioCapabilities       com.tauri.tauri_app                  W  Unsupported mime audio/alac
2024-01-08 00:57:14.391 27352-27426 AudioCapabilities       com.tauri.tauri_app                  W  Unsupported mime audio/ape
2024-01-08 00:57:14.433 27352-27426 VideoCapabilities       com.tauri.tauri_app                  W  Unsupported mime video/divx
2024-01-08 00:57:14.436 27352-27426 VideoCapabilities       com.tauri.tauri_app                  W  Unsupported mime video/divx3
2024-01-08 00:57:14.459 27352-27426 VideoCapabilities       com.tauri.tauri_app                  W  Unrecognized profile/level 1/32 for video/mp4v-es
2024-01-08 00:57:14.459 27352-27426 VideoCapabilities       com.tauri.tauri_app                  W  Unrecognized profile/level 32768/2 for video/mp4v-es
2024-01-08 00:57:14.459 27352-27426 VideoCapabilities       com.tauri.tauri_app                  W  Unrecognized profile/level 32768/64 for video/mp4v-es
2024-01-08 00:57:14.482 27352-27426 VideoCapabilities       com.tauri.tauri_app                  W  Unsupported mime video/x-ms-wmv
2024-01-08 00:57:14.486 27352-27426 VideoCapabilities       com.tauri.tauri_app                  W  Unsupported mime video/xvid
2024-01-08 00:57:14.509 27352-27426 VideoCapabilities       com.tauri.tauri_app                  W  Unrecognized profile/level 1/32 for video/mp4v-es
2024-01-08 00:57:14.513 27352-27426 VideoCapabilities       com.tauri.tauri_app                  I  Unsupported profile 4 for video/mp4v-es
2024-01-08 00:57:14.526 27352-27426 cr_MediaCodecUtil       com.tauri.tauri_app                  W  HW encoder for video/avc is not available on this device.
2024-01-08 00:57:15.703 27352-27377 RustStdoutStderr        com.tauri.tauri_app                  I  Failed to request http://172.21.92.113:1420/favicon.ico: error sending request for url (http://172.21.92.113:1420/favicon.ico): error trying to connect: tcp connect error: No route to host (os error 113)
2024-01-08 00:57:15.816   402-438   BufferQueueProducer     surfaceflinger                       I  [com.tauri.tauri_app/com.tauri.tauri_app.MainActivity#0](this:0x7143fa8000,id:169,api:1,p:27352,c:402) queueBuffer: fps=4.07 dur=1965.32 max=1080.56 min=3.85

On desktop:

libEGL warning: failed to open /dev/dri/renderD128: Permission denied

libEGL warning: failed to open /dev/dri/card0: Permission denied

libEGL warning: failed to open /dev/dri/renderD128: Permission denied

libEGL warning: failed to open /dev/dri/card0: Permission denied

Additional context

No response

FabianLars commented 9 months ago

For Linux, try one of these env vars: WEBKIT_DISABLE_DMABUF_RENDERER=1 WEBKIT_DISABLE_COMPOSITING_MODE=1

For Android: Is that in a vm or a real device? Tauri generally requires more recent android versions in vms because the webviews aren't updated in them (unless you know of a way to do that).

The whole process also seems like a lot of libraries and effort for just a simple JNI webview. It would be nice if it's explained why this is the case.

Which libraries are you talking about? (Like OS, gradle, rust, js)

fr-an-k commented 9 months ago

I primarily need the Android support, I can imagine that WSL2 is not supported, but that's how I develop.

I suspect this bug affects the Chinese market.

It's a real device but no playstore. It's set to Android System Webview 61.0.3163.98, but package name "com.android.webview" instead of "com.google.android.webview" It's the most recent version I was able to install; the original being 58.0.3029.125. It's a terrible situation to have to support this but out of my control.

I see now that Tauri is primarily targeted at javascript web users rather than Rust users, which explains why it's relatively complex.

I'm just looking for an Android webview binding in Rust, ideally as a WASM module.

The Dioxus example with cargo mobile 0.1.0 was working on this device with the original wry code instead of the Dioxus code. I think that actually suits my use case better than Tauri but I will have to investigate further.

Perhaps the call to getDefinedWebViewPackageName is added in tauri-runtime or tauri-runtime-wry, and perhaps this function does not exist in the Chinese Android build.

FabianLars commented 9 months ago

I think it's possible we made changes that simply require a newer webview version now but this sounds like something out of my league, so i'm gonna ping @lucasfernog and see if he has an idea.

lucasfernog commented 9 months ago

I could not find a reference to getDefinedWebViewPackageName on our code base, so it's not something we added recently.

I think the issue is actually this: Failed to request http://172.21.92.113:1420/: error sending request for url (http://172.21.92.113:1420/): error trying to connect: tcp connect error: No route to host (os error 113). Are you connected to the same network on the Android device? It needs access to that local network IP.

renjiali commented 38 minutes ago

我在我们的代码库中找不到引用getDefinedWebViewPackageName,所以这不是我们最近添加的东西。

我认为问题实际上是这样的: Failed to request http://172.21.92.113:1420/: error sending request for url (http://172.21.92.113:1420/): error trying to connect: tcp connect error: No route to host (os error 113)。 您是否在 Android 设备上连接到同一网络? 它需要访问该本地网络 IP。

Sure, I used a simulator, but... image