tauri-apps / tauri

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

[bug] error running android dev on windows 10 #11775

Open rex19001 opened 1 week ago

rex19001 commented 1 week ago

Describe the bug

I followed the https://v2.tauri.app/start/prerequisites/#android this page configuration, run the 'npm run tauri android dev' to make mistakes Snipaste_2024-11-22_22-02-13

Reproduction

No response

Expected behavior

run android emulator

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.19045 x86_64 (X64)
    ✔ WebView2: 130.0.2849.80
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
    ✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.12.1
    - pnpm: 9.5.0
    - npm: 10.5.0

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.2
    - tao 🦀: 0.30.8
    - @tauri-apps/api : 2.1.1
    - @tauri-apps/cli : 2.1.0

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.1
    - tauri-plugin-sql 🦀: 2.0.2
    - @tauri-apps/plugin-sql : not installed!

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace

E:\workspace\Tauri\menu> npm run tauri android dev

> menu@0.1.0 tauri 
> tauri android dev

    Info Detected connected device: Pixel_8_API_29 (Android SDK built for x86) with target "i686-linux-android"
    Info Using 192.168.3.82 to access the development server.
    Info Replacing devUrl host with 192.168.3.82. If your frontend is not listening on that address, try configuring your development server to use the `TAURI_DEV_HOST` environment variable or 0.0.0.0 as host.
    Running BeforeDevCommand (`npm run dev`)

> menu@0.1.0 dev
> vite

  VITE v5.4.11  ready in 272 ms

  ➜  Local:   http://localhost:1420/   
  ➜  Network: http://198.18.0.1:1420/  
  ➜  Network: http://192.168.3.82:1420/
warning: `C:\Users\rex19\.cargo\config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
   Compiling menu v0.1.0 (E:\workspace\Tauri\menu\src-tauri)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.14s
    Info symlinking lib "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" in jniLibs dir "E:\\workspace\\Tauri\\menu\\src-tauri\\gen/android\\app/src/main/jniLibs/x86"
    Info "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" requires shared lib "libandroid.so"
    Info "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" requires shared lib "libdl.so"
    Info "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" requires shared lib "liblog.so" 
    Info "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" requires shared lib "libm.so"   
    Info "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" requires shared lib "libc.so"   
    Info symlink at "E:\\workspace\\Tauri\\menu\\src-tauri\\gen/android\\app/src/main/jniLibs/x86\\libmenu_lib.so" points to "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so"
<==========---> 84% EXECUTING [1s]
> :app:rustBuildX86Debug
> menu@0.1.0 tauri
> tauri android android-studio-script --target i686

warning: `C:\Users\rex19\.cargo\config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
   Compiling menu v0.1.0 (E:\workspace\Tauri\menu\src-tauri)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.22s
    Info symlinking lib "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" in jniLibs dir "E:\\workspace\\Tauri\\menu\\src-tauri\\gen/android\\app/src/main/jniLibs/x86"
    Info "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" requires shared lib "libandroid.so"
    Info "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" requires shared lib "libdl.so"  
    Info "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" requires shared lib "liblog.so" 
    Info "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" requires shared lib "libm.so"   
    Info "E:\\workspace\\Tauri\\menu\\src-tauri\\target\\i686-linux-android\\debug\\libmenu_lib.so" requires shared lib "libc.so"   
Performing Streamed Install
Success
Starting: Intent { cmp=com.menu.app/.MainActivity }
--------- beginning of main
11-22 14:01:31.818 12534 12534 I com.menu.app: Late-enabling -Xcheck:jni
11-22 14:01:31.843 12534 12534 E com.menu.app: Unknown bits set in runtime_flags: 0x8000
11-22 14:01:31.844 12534 12534 W com.menu.app: Unexpected CPU variant for X86 using defaults: x86
11-22 14:01:32.129 12534 12595 W libc    : Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
    Info Watching E:\workspace\Tauri\menu\src-tauri for changes...
11-22 14:01:32.377 12534 12534 W com.menu.app: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
11-22 14:01:32.378 12534 12534 W com.menu.app: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
11-22 14:01:32.396 12534 12534 I WebViewFactory: Loading com.google.android.webview version 74.0.3729.185 (code 373018518)
11-22 14:01:32.399 12534 12534 I com.menu.app: The ClassLoaderContext is a special shared library.
11-22 14:01:32.400 12534 12534 I com.menu.app: The ClassLoaderContext is a special shared library.
11-22 14:01:32.416 12534 12534 I cr_LibraryLoader: Time to load native libraries: 1 ms (timestamps 5702-5703)
11-22 14:01:32.423 12534 12534 I chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
11-22 14:01:32.423 12534 12613 I RustStdoutStderr: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
11-22 14:01:32.423 12534 12534 I cr_LibraryLoader: Expected native library version number "74.0.3729.185", actual native library version number "74.0.3729.185"
11-22 14:01:32.427 12534 12620 W cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.google.android.webview, sandboxed = true
11-22 14:01:32.428 12534 12620 W com.menu.app: Accessing hidden method Landroid/content/Context;->bindServiceAsUser(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/Handler;Landroid/os/UserHandle;)Z (greylist, reflection, allowed)
11-22 14:01:32.431 12534 12534 I cr_BrowserStartup: Initializing chromium process, singleProcess=false
11-22 14:01:32.497 12534 12534 W com.menu.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-><init>(Landroid/content/Context;I)V (greylist, reflection, allowed)
11-22 14:01:32.497 12534 12534 W com.menu.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (greylist, reflection, allowed)     
11-22 14:01:32.498 12534 12534 W com.menu.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
11-22 14:01:32.498 12534 12534 W com.menu.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, 
reflection, allowed)
11-22 14:01:32.498 12534 12534 W com.menu.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
11-22 14:01:32.498 12534 12534 W com.menu.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
11-22 14:01:32.498 12534 12534 W com.menu.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
11-22 14:01:32.498 12534 12534 W com.menu.app: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (greylist, reflection, allowed)
11-22 14:01:32.532 12534 12593 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
11-22 14:01:32.588 12534 12593 W Gralloc3: mapper 3.x is not supported
11-22 14:01:33.000 12534 12647 W cr_media: Requires BLUETOOTH permission
11-22 14:01:33.019 12534 12593 E eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
11-22 14:01:33.019 12534 12593 E eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
11-22 14:01:33.058 12534 12659 I VideoCapabilities: Unsupported profile 4 for video/mp4v-es
11-22 14:01:33.060 12534 12659 W cr_MediaCodecUtil: HW encoder for video/avc is not available on this device.
11-22 14:01:33.105 12534 12659 E eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
11-22 14:01:33.105 12534 12659 E eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
11-22 14:01:33.128 12534 12659 E eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
11-22 14:01:33.128 12534 12659 E eglCodecCommon: glUtilsParamSize: unknow param 0x000088ef
11-22 14:01:33.150 12534 12534 E Tauri/Console: File: http://tauri.localhost/ - Line 514 - Msg: Uncaught SyntaxError: Unexpected token .
11-22 14:01:33.208 12534 12534 E Tauri/Console: File: http://tauri.localhost/@vite/client - Line 34 - Msg: Uncaught SyntaxError: Unexpected token .
11-22 14:01:33.286 12534 12534 E Tauri/Console: File: http://tauri.localhost/@vite/client - Line 34 - Msg: Uncaught SyntaxError: Unexpected token .

Additional context

No response

vintheweirdass commented 5 days ago

Same with Tauri + Deno using npm:create-tauri-app

Im using Windows 11 to build these (even tho the output says 10.0.22)

image

image

But the weirdest thing is, it works, but very slow than usual

Its starts with blank screen (like the OP's screenshot)

Then, it does show the screen normally

image

Full tauri info output

PS C:\Users\me\Documents\duckncup-tauri> deno task tauri info
Task tauri tauri "info"

[✔] Environment
    - OS: Windows 10.0.22631 x86_64 (X64)
    ✔ WebView2: 131.0.2903.63
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.17.0
    - pnpm: 9.14.2
    - npm: 10.8.3
    - bun: 1.1.22
    - deno: deno 2.0.6

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.2
    - tao 🦀: 0.30.8
    - @tauri-apps/api : 2.1.1
    - @tauri-apps/cli : 2.1.0

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace

The package id is vintheweirdass.duckncup

PS C:\Users\me\Documents\duckncup-tauri> deno task tauri android dev
task tauri tauri "android" "dev"
    Info Detected connected device: avedeh (AOSP on IA Emulator) with target "i686-linux-android"
    Info Using 192.168.0.105 to access the development server.
    Info Replacing devUrl host with 192.168.0.105. If your frontend is not listening on that address, try configuring your development server to use the `TAURI_DEV_HOST` environment variable or 0.0.0.0 as host.
    Running BeforeDevCommand (`deno task dev`)
Task dev vite

  VITE v5.4.11  ready in 621 ms

  ➜  Network: http://192.168.0.105:1420/
    Blocking waiting for file lock on build directory
   Compiling proc-macro2 v1.0.92
   Compiling unicode-ident v1.0.14
   Compiling cfg-if v1.0.0
   Compiling byteorder v1.5.0
   Compiling serde v1.0.215
   Compiling siphasher v0.3.11
   Compiling autocfg v1.4.0
   Compiling libc v0.2.164
   Compiling syn v1.0.109
   Compiling getrandom v0.1.16
   Compiling parking_lot_core v0.9.10
   Compiling stable_deref_trait v1.2.0
   Compiling proc-macro-hack v0.5.20+deprecated
   Compiling hashbrown v0.15.2
   Compiling equivalent v1.0.1
   Compiling getrandom v0.2.15                                                                                             
   Compiling thiserror v1.0.69                                                                                             
   Compiling winnow v0.5.40
   Compiling smallvec v1.13.2                                                                                              
   Compiling rand_core v0.6.4                                                                                              
   Compiling phf_shared v0.10.0                                                                                            
   Compiling phf_shared v0.8.0                                                                                             
   Compiling windows_x86_64_msvc v0.52.6                                                                                   
   Compiling fnv v1.0.7                                                                                                    
   Compiling typeid v1.0.2                                                                                                 
   Compiling writeable v0.5.5                                                                                              
   Compiling litemap v0.7.4                                                                                                
   Compiling version_check v0.9.5                                                                                          
   Compiling convert_case v0.4.0                                                                                           
   Compiling rand_core v0.5.1
   Compiling indexmap v2.6.0                                                                                               
   Compiling ident_case v1.0.1                                                                                             
   Compiling strsim v0.11.1                                                                                                
   Compiling rand_pcg v0.2.1
   Compiling windows-targets v0.52.6                                                                                       
   Compiling memchr v2.7.4                                                                                                 
   Compiling icu_locid_transform_data v1.5.0                                                                               
   Compiling phf_shared v0.11.2                                                                                            
   Compiling icu_properties_data v1.5.0
   Compiling thiserror v2.0.3                                                                                              
   Compiling typenum v1.17.0                                                                                               
   Compiling utf16_iter v1.0.5                                                                                             
   Compiling lock_api v0.4.12                                                                                              
   Compiling new_debug_unreachable v1.0.6                                                                                  
   Compiling quote v1.0.37                                                                                                 
   Compiling scopeguard v1.2.0
   Compiling itoa v1.0.13
   Compiling serde_json v1.0.133                                                                                           
   Compiling write16 v1.0.0
   Compiling semver v1.0.23                                                                                                
   Compiling syn v2.0.89
   Compiling icu_normalizer_data v1.5.0
   Compiling utf8_iter v1.0.4
   Compiling generic-array v0.14.7                                                                                         
   Compiling mac v0.1.1                                                                                                    
   Compiling ryu v1.0.18
   Compiling once_cell v1.20.2                                                                                             
   Compiling precomputed-hash v0.1.1                                                                                       
   Compiling futf v0.1.5
   Compiling indexmap v1.9.3
   Compiling percent-encoding v2.3.1                                                                                       
   Compiling log v0.4.22                                                                                                   
   Compiling parking_lot v0.12.3                                                                                           
   Compiling bitflags v1.3.2
   Compiling utf-8 v0.7.6                                                                                                  
   Compiling dtoa v1.0.9
   Compiling windows_x86_64_msvc v0.48.5                                                                                   
   Compiling form_urlencoded v1.2.1                                                                                        
   Compiling aho-corasick v1.1.3
   Compiling tendril v0.4.3                                                                                                
   Compiling dtoa-short v0.3.5
   Compiling windows-sys v0.59.0                                                                                           
   Compiling phf v0.10.1                                                                                                   
   Compiling alloc-no-stdlib v2.0.4                                                                                        
   Compiling nodrop v0.1.14
   Compiling unic-char-range v0.9.0
   Compiling regex-syntax v0.8.5
   Compiling hashbrown v0.12.3
   Compiling unic-common v0.9.0                                                                                            
   Compiling camino v1.1.9                                                                                                 
   Compiling matches v0.1.10
   Compiling itoa v0.4.8
   Compiling unic-ucd-version v0.9.0
   Compiling unic-char-property v0.9.0
   Compiling alloc-stdlib v0.2.2
   Compiling servo_arc v0.1.1                                                                                              
   Compiling fxhash v0.2.1                                                                                                 
   Compiling shlex v1.3.0                                                                                                  
   Compiling thin-slice v0.1.1                                                                                             
   Compiling schemars v0.8.21                                                                                              
   Compiling unic-ucd-ident v0.9.0                                                                                         
   Compiling brotli-decompressor v4.0.1                                                                                    
   Compiling windows-targets v0.48.5                                                                                       
   Compiling cc v1.2.1                                                                                                     
   Compiling dyn-clone v1.0.17                                                                                             
   Compiling anyhow v1.0.93                                                                                                
   Compiling bytes v1.8.0
   Compiling windows-sys v0.48.0
   Compiling dunce v1.0.5                                                                                                  
   Compiling glob v0.3.1
   Compiling winapi-util v0.1.9
   Compiling http v1.1.0
   Compiling same-file v1.0.6                                                                                              
   Compiling brotli v7.0.0                                                                                                 
   Compiling walkdir v2.5.0
   Compiling option-ext v0.2.0                                                                                             
   Compiling pin-project-lite v0.2.15                                                                                      
   Compiling futures-core v0.3.31
   Compiling regex-automata v0.4.9                                                                                         
   Compiling slab v0.4.9                                                                                                   
   Compiling jni-sys v0.3.0
   Compiling simd-adler32 v0.3.7                                                                                           
   Compiling heck v0.5.0                                                                                                   
   Compiling synstructure v0.13.1
   Compiling darling_core v0.20.10
   Compiling serde_derive_internals v0.29.1
   Compiling crossbeam-utils v0.8.20                                                                                       
   Compiling adler2 v2.0.0
   Compiling miniz_oxide v0.8.0                                                                                            
   Compiling vswhom-sys v0.1.2                                                                                             
   Compiling regex v1.11.1                                                                                                 
   Compiling socket2 v0.5.7
   Compiling mio v1.0.2
   Compiling crc32fast v1.4.2
   Compiling num-conv v0.1.0                                                                                               
   Compiling cesu8 v1.1.0
   Compiling powerfmt v0.2.0
   Compiling pin-utils v0.1.0
   Compiling httparse v1.9.5                                                                                               
   Compiling raw-window-handle v0.6.2                                                                                      
   Compiling vswhom v0.1.0                                                                                                 
   Compiling futures-task v0.3.31                                                                                          
   Compiling time-core v0.1.2
   Compiling winreg v0.52.0
   Compiling dirs-sys v0.4.1
   Compiling deranged v0.3.11
   Compiling flate2 v1.0.35                                                                                                
   Compiling time-macros v0.2.18
   Compiling dirs v5.0.1                                                                                                   
   Compiling crypto-common v0.1.6                                                                                          
   Compiling block-buffer v0.10.4
   Compiling fdeflate v0.3.6                                                                                               
   Compiling ndk-sys v0.6.0+11769913
   Compiling cookie v0.18.1
   Compiling try-lock v0.2.5                                                                                               
   Compiling bitflags v2.6.0
   Compiling want v0.3.1                                                                                                   
   Compiling png v0.17.14                                                                                                  
   Compiling crossbeam-channel v0.5.13                                                                                     
   Compiling digest v0.10.7
   Compiling futures-channel v0.3.31                                                                                       
   Compiling tracing-core v0.1.32                                                                                          
   Compiling cpufeatures v0.2.16
   Compiling tauri-runtime v2.2.0
   Compiling wry v0.47.2                                                                                                   
   Compiling base64 v0.22.1                                                                                                
   Compiling sha2 v0.10.8                                                                                                  
   Compiling cssparser v0.27.2
   Compiling html5ever v0.26.0
   Compiling tracing v0.1.40                                                                                               
   Compiling ico v0.3.0                                                                                                    
   Compiling instant v0.1.13
   Compiling lazy_static v1.5.0
   Compiling tower-service v0.3.3
   Compiling ndk-context v0.1.1                                                                                            
   Compiling tauri-runtime-wry v2.2.0                                                                                      
   Compiling serde_derive v1.0.215                                                                                         
   Compiling zerocopy-derive v0.7.35                                                                                       
   Compiling zerofrom-derive v0.1.5                                                                                        
   Compiling yoke-derive v0.7.5                                                                                            
   Compiling zerovec-derive v0.10.3                                                                                        
   Compiling displaydoc v0.2.5                                                                                             
   Compiling icu_provider_macros v1.5.0                                                                                    
   Compiling thiserror-impl v1.0.69                                                                                        
   Compiling cssparser-macros v0.6.1
   Compiling derive_more v0.99.18                                                                                          
   Compiling darling_macro v0.20.10
   Compiling thiserror-impl v2.0.3
   Compiling ctor v0.2.9                                                                                                   
   Compiling schemars_derive v0.8.21                                                                                       
   Compiling darling v0.20.10                                                                                              
   Compiling serde_with_macros v3.11.0                                                                                     
   Compiling futures-macro v0.3.31                                                                                         
   Compiling time v0.3.36
   Compiling zerocopy v0.7.35                                                                                              
   Compiling tao-macros v0.1.3                                                                                             
   Compiling futures-sink v0.3.31                                                                                          
   Compiling ppv-lite86 v0.2.20                                                                                            
   Compiling futures-util v0.3.31
   Compiling serialize-to-javascript-impl v0.1.1
   Compiling rand_chacha v0.3.1
   Compiling rand_chacha v0.2.2
   Compiling zerofrom v0.1.5                                                                                               
   Compiling sync_wrapper v1.0.2                                                                                           
   Compiling is-docker v0.2.0                                                                                              
   Compiling rand v0.8.5
   Compiling rand v0.7.3
   Compiling yoke v0.7.5                                                                                                   
   Compiling ipnet v2.10.1                                                                                                 
   Compiling mime v0.3.17                                                                                                  
   Compiling zerovec v0.10.4                                                                                               
   Compiling is-wsl v0.4.0                                                                                                 
   Compiling serde_repr v0.1.19                                                                                            
   Compiling pathdiff v0.2.2
   Compiling phf_generator v0.10.0
   Compiling phf_generator v0.8.0                                                                                          
   Compiling phf_codegen v0.10.0
   Compiling string_cache_codegen v0.5.2
   Compiling phf_generator v0.11.2
   Compiling open v5.3.1
   Compiling phf_codegen v0.8.0
   Compiling encoding_rs v0.8.35                                                                                           
   Compiling os_pipe v1.2.1                                                                                                
   Compiling phf_macros v0.11.2
   Compiling shared_child v1.0.1
   Compiling phf_macros v0.8.0
   Compiling selectors v0.22.0
   Compiling tinystr v0.7.6
   Compiling icu_collections v1.5.0                                                                                        
   Compiling markup5ever v0.11.0                                                                                           
   Compiling icu_locid v1.5.0                                                                                              
   Compiling phf v0.11.2
   Compiling phf v0.8.0                                                                                                    
   Compiling icu_provider v1.5.0                                                                                           
   Compiling icu_locid_transform v1.5.0                                                                                    
   Compiling icu_properties v1.5.1                                                                                         
   Compiling toml_datetime v0.6.3                                                                                          
   Compiling serde_spanned v0.6.8
   Compiling string_cache v0.8.7
   Compiling uuid v1.11.0
   Compiling erased-serde v0.4.5
   Compiling cargo-platform v0.1.8
   Compiling serde_with v3.11.0
   Compiling toml_edit v0.20.2                                                                                             
   Compiling rustc_version v0.4.1                                                                                          
   Compiling cfb v0.7.3
   Compiling toml_edit v0.19.15                                                                                            
   Compiling serde-untagged v0.1.6                                                                                         
   Compiling icu_normalizer v1.5.0
   Compiling combine v4.6.7                                                                                                
   Compiling jsonptr v0.6.3                                                                                                
   Compiling cargo_metadata v0.18.1                                                                                        
   Compiling idna_adapter v1.2.0                                                                                           
   Compiling json-patch v3.0.1                                                                                             
   Compiling infer v0.16.0                                                                                                 
   Compiling idna v1.0.3                                                                                                   
   Compiling toml v0.8.2                                                                                                   
   Compiling url v2.5.4
   Compiling toml v0.7.8
   Compiling proc-macro-crate v2.0.2                                                                                       
   Compiling kuchikiki v0.8.2                                                                                              
   Compiling embed-resource v2.5.1                                                                                         
   Compiling urlpattern v0.3.0                                                                                             
   Compiling tauri-winres v0.1.1                                                                                           
   Compiling cargo_toml v0.17.2                                                                                            
   Compiling http-body v1.0.1                                                                                              
   Compiling tokio v1.41.1
   Compiling dpi v0.1.1
   Compiling http-body-util v0.1.2
   Compiling tauri-utils v2.1.0
   Compiling serde_urlencoded v0.7.1                                                                                       
   Compiling serialize-to-javascript v0.1.1
   Compiling num_enum_derive v0.7.3                                                                                        
   Compiling jni v0.21.1
   Compiling num_enum v0.7.3                                                                                               
   Compiling ndk v0.9.0
   Compiling hyper v1.5.1
   Compiling tokio-util v0.7.12
   Compiling hyper-util v0.1.10
   Compiling tao v0.30.8
   Compiling tauri-build v2.0.3
   Compiling tauri-plugin v2.0.3
   Compiling tauri-codegen v2.0.3
   Compiling reqwest v0.12.9                                                                                               
   Compiling tauri v2.1.1                                                                                                  
   Compiling tauri-plugin-shell v2.0.2
   Compiling tauri-macros v2.0.3
   Compiling duckncup v0.1.0 (C:\Users\me\Documents\duckncup-tauri\src-tauri)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 13s                                                   
    Info symlinking lib "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" in jniLibs dir "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\gen/android\\app/src/main/jniLibs/x86"  
    Info "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" requires shared lib "libandroid.so"
    Info "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" requires shared lib "libdl.so"
    Info "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" requires shared lib "liblog.so"
    Info "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" requires shared lib "libm.so"
    Info "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" requires shared lib "libc.so"
    Info symlink at "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\gen/android\\app/src/main/jniLibs/x86\\libduckncup_lib.so" points to "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so"
Task tauri tauri "android" "android-studio-script" "--target" "i686"                                                       
<=======------> 60% EXECUTING [18s]                                                                                        
> :app:processX86DebugManifestForPackage                      Blocking waiting for file lock on build directory
w: file:///C:/Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-2.1.1/mobile/android/src/main/java/app/tauri/plugin/PluginMethodData.kt:11:23 Parameter 'methodDecorator' is never used
   Compiling ring v0.17.8TING [1m 5s]
   Compiling rustls-pki-types v1.10.0                                                                                      
   Compiling spin v0.9.8
   Compiling untrusted v0.9.0 [1m 5s]
   Compiling rustls v0.23.18G [1m 5s]                                                                                      
   Compiling zeroize v1.8.1NG [1m 5s]                                                                                      
   Compiling subtle v2.6.1
   Compiling tauri v2.1.1
   Compiling wry v0.47.2UTING [1m 5s]
   Compiling webpki-roots v0.26.7 5s]                                                                                      
   Compiling rustls-pemfile v2.2.0ackage
   Compiling tauri-runtime-wry v2.2.0
   Compiling tauri-plugin-shell v2.0.2                                                                                     
   Compiling duckncup v0.1.0 (C:\Users\me\Documents\duckncup-tauri\src-tauri)                                            
   Compiling rustls-webpki v0.102.83s]                                                                                     
   Compiling tokio-rustls v0.26.0 17s]                                                                                     
   Compiling hyper-rustls v0.27.3 18s]                                                                                     
   Compiling reqwest v0.12.9G [1m 18s]                                                                                     
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 14s                                                   
    Info symlinking lib "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" in jniLibs dir "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\gen/android\\app/src/main/jniLibs/x86"  
    Info "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" requires shared lib "libandroid.so"
    Info "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" requires shared lib "libdl.so"
    Info "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" requires shared lib "liblog.so"
    Info "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" requires shared lib "libm.so"
    Info "C:\\Users\\me\\Documents\\duckncup-tauri\\src-tauri\\target\\i686-linux-android\\debug\\libduckncup_lib.so" requires shared lib "libc.so"
Performing Streamed Install
Success
Starting: Intent { cmp=vintheweirdass.duckncup/.MainActivity }
--------- beginning of main
11-25 10:59:00.979 31221 31221 I irdass.duckncu: Late-enabling -Xcheck:jni
11-25 10:59:01.064 31221 31221 W irdass.duckncu: Unexpected CPU variant for X86 using defaults: x86
11-25 10:59:01.568 31221 31221 W irdass.duckncu: Accessing hidden field Landroid/os/Trace;->TRACE_TAG_APP:J (light greylist, reflection)
11-25 10:59:01.568 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (light greylist, reflection)
11-25 10:59:02.077 31221 31221 W irdass.duckncu: Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
11-25 10:59:02.077 31221 31221 W irdass.duckncu: Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
11-25 10:59:02.077 31221 31221 W irdass.duckncu: Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
11-25 10:59:02.077 31221 31221 W irdass.duckncu: Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
11-25 10:59:02.261 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
11-25 10:59:02.262 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
11-25 10:59:02.345 31221 31291 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
11-25 10:59:02.345 31221 31291 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
11-25 10:59:02.345 31221 31291 I OpenGLRenderer: Initialized EGL, version 1.4
11-25 10:59:02.346 31221 31291 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
11-25 10:59:02.367 31221 31221 I WebViewFactory: Loading com.android.chrome version 69.0.3497.100 (code 349710017)
11-25 10:59:02.404 31221 31221 I irdass.duckncu: The ClassLoaderContext is a special shared library.
    Info Watching C:\Users\me\Documents\duckncup-tauri\src-tauri for changes...
11-25 10:59:02.461 31221 31291 E eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
11-25 10:59:02.531 31221 31221 I cr_LibraryLoader: Time to load native libraries: 12 ms (timestamps 7939-7951)
11-25 10:59:02.545 31221 31299 E cr_VariationsUtils: Failed reading seed file "/data/user/0/vintheweirdass.duckncup/app_webview/variations_seed_new": /data/user/0/vintheweirdass.duckncup/app_webview/variations_seed_new (No such file or directory)
11-25 10:59:02.545 31221 31299 E cr_VariationsUtils: Failed reading seed file "/data/user/0/vintheweirdass.duckncup/app_webview/variations_seed": /data/user/0/vintheweirdass.duckncup/app_webview/variations_seed (No such file or directory)        
11-25 10:59:02.558 31221 31221 I chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
11-25 10:59:02.558 31221 31277 I RustStdoutStderr: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
11-25 10:59:02.558 31221 31221 I cr_LibraryLoader: Expected native library version number "69.0.3497.100", actual native library version number "69.0.3497.100"
11-25 10:59:02.567 31221 31300 W cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
11-25 10:59:02.579 31221 31221 I cr_BrowserStartup: Initializing chromium process, singleProcess=false
11-25 10:59:02.700 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-><init>(Landroid/content/Context;I)V (light greylist, reflection)
11-25 10:59:02.700 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection)
11-25 10:59:02.701 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
11-25 10:59:02.701 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
11-25 10:59:02.701 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
11-25 10:59:02.701 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
11-25 10:59:02.701 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
11-25 10:59:02.701 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
11-25 10:59:02.777 31221 31221 E chromium: [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
11-25 10:59:02.778 31221 31277 I RustStdoutStderr: [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
11-25 10:59:02.890 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (light greylist, reflection)
11-25 10:59:02.890 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (light greylist, reflection)
11-25 10:59:02.890 31221 31221 W irdass.duckncu: Accessing hidden method Landroid/os/Trace;->traceCounter(JLjava/lang/String;I)V (light greylist, reflection)
11-25 10:59:02.919 31221 31322 W cr_media: Requires BLUETOOTH permission
11-25 10:59:02.959 31221 31344 W cr_CrashFileManager: /data/user/0/vintheweirdass.duckncup/cache/WebView/Crash Reports does not exist or is not a directory
11-25 10:59:03.048 31221 31334 W irdass.duckncu: Accessing hidden method Landroid/graphics/FontFamily;-><init>()V (light greylist, reflection)
11-25 10:59:03.048 31221 31334 W irdass.duckncu: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromAssetManager(Landroid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z (light greylist, reflection)
11-25 10:59:03.048 31221 31334 W irdass.duckncu: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z (light greylist, reflection)
11-25 10:59:03.048 31221 31334 W irdass.duckncu: Accessing hidden method Landroid/graphics/FontFamily;->freeze()Z (light greylist, reflection)
11-25 10:59:03.048 31221 31334 W irdass.duckncu: Accessing hidden method Landroid/graphics/FontFamily;->abortCreation()V (light greylist, reflection)
11-25 10:59:03.048 31221 31334 W irdass.duckncu: Accessing hidden method Landroid/graphics/Typeface;->createFromFamiliesWithDefault([Landroid/graphics/FontFamily;Ljava/lang/String;II)Landroid/graphics/Typeface; (light greylist, reflection)       
11-25 10:59:03.072 31221 31332 W VideoCapabilities: Unrecognized profile 4 for video/hevc
11-25 10:59:03.126 31221 31332 I VideoCapabilities: Unsupported profile 4 for video/mp4v-es
11-25 10:59:03.145 31221 31332 W cr_MediaCodecUtil: HW encoder for video/avc is not available on this device.
11-25 10:59:03.263 31221 31332 E chromium: [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
11-25 10:59:03.263 31221 31277 I RustStdoutStderr: [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
11-25 10:59:03.449 31221 31221 E Tauri/Console: File: http://tauri.localhost/ - Line 514 - Msg: Uncaught SyntaxError: Unexpected token .
11-25 10:59:03.504 31221 31243 I irdass.duckncu: Background concurrent copying GC freed 9638(820KB) AllocSpace objects, 3(124KB) LOS objects, 49% free, 2MB/5MB, paused 603us total 236.136ms
11-25 10:59:03.562 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:03.562 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:03.651 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:03.651 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.397 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.397 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.442 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.442 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.481 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.482 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.527 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.528 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.568 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.568 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.604 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.604 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.640 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.641 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.676 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.676 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.714 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:04.714 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:09.914 31221 31221 E Tauri/Console: File: http://tauri.localhost/@react-refresh - Line 486 - Msg: Uncaught SyntaxError: Unexpected token .
11-25 10:59:09.915 31221 31221 E Tauri/Console: File: http://tauri.localhost/@vite/client - Line 34 - Msg: Uncaught SyntaxError: Unexpected token .
11-25 10:59:10.220 31221 31221 E Tauri/Console: File: http://tauri.localhost/@vite/client - Line 34 - Msg: Uncaught SyntaxError: Unexpected token .
11-25 10:59:34.449 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
11-25 10:59:34.449 31221 31291 E eglCodecCommon: glUtilsParamSize: unknow param 0x000085b5
FabianLars commented 4 days ago

Im using Windows 11 to build these (even tho the output says 10.0.22)

versions starting with 10.0.2xxx are windows 11, and everything below is windows 10 (as long as it starts with 10.xxx). This is how Windows reports itself 🤷

But the weirdest thing is, it works, but very slow than usual Its starts with blank screen (like the OP's screenshot) Then, it does show the screen normally

Maybe the streamed install isn't that fast, idk the first start(s) are quite slow for me too 🤷


OP's issue sounds more like vite compiled the frontend for a browser version that's too new for the android / android-webview version 🤔

vintheweirdass commented 4 days ago

Im using Windows 11 to build these (even tho the output says 10.0.22)

versions starting with 10.0.2xxx are windows 11, and everything below is windows 10 (as long as it starts with 10.xxx). This is how Windows reports itself 🤷

But the weirdest thing is, it works, but very slow than usual Its starts with blank screen (like the OP's screenshot) Then, it does show the screen normally

Maybe the streamed install isn't that fast, idk the first start(s) are quite slow for me too 🤷

OP's issue sounds more like vite compiled the frontend for a browser version that's too new for the android / android-webview version 🤔

Oh, my bad. But for my own issue, the fix is just to disable those optimizations for battery life 😭, since its just slow everytime it runs from dev