Open cleveng opened 3 weeks ago
could you run the following command in src-tauri
and see if it errors?
cargo build --lib --target aarch64-linux-android
if that works fine, try running tauri android build -vvv
could you run the following command in
src-tauri
and see if it errors?cargo build --lib --target aarch64-linux-android
if that works fine, try running
tauri android build -vvv
The following warnings were emitted during compilation:
warning: ring@0.17.8: Compiler family detection failed due to error: ToolNotFound: Failed to find tool. Is `aarch64-linux-android-clang` installed? (see https://docs.rs/cc/latest/cc/#compile-time-requirements for help)
warning: ring@0.17.8: Compiler family detection failed due to error: ToolNotFound: Failed to find tool. Is `aarch64-linux-android-clang` installed? (see https://docs.rs/cc/latest/cc/#compile-time-requirements for help)
warning: ring@0.17.8: In file included from crypto/curve25519/curve25519.c:24:
warning: ring@0.17.8: In file included from crypto/curve25519/internal.h:20:
warning: ring@0.17.8: In file included from crypto/curve25519/../internal.h:115:
warning: ring@0.17.8: include\ring-core/check.h:27:11: fatal error: 'assert.h' file not found
warning: ring@0.17.8: 27 | # include <assert.h>
warning: ring@0.17.8: | ^~~~~~~~~~
warning: ring@0.17.8: 1 error generated.
error: failed to run custom build command for `ring v0.17.8`
Caused by:
process didn't exit successfully: `C:\Users\Administrator\code\rust\tauri-app\src-tauri\target\debug\build\ring-386a7dd8db3ad9ef\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
cargo:rustc-env=RING_CORE_PREFIX=ring_core_0_17_8_
OPT_LEVEL = Some(0)
TARGET = Some(aarch64-linux-android)
OUT_DIR = Some(C:\Users\Administrator\code\rust\tauri-app\src-tauri\target\aarch64-linux-android\debug\build\ring-f989e4c358f1ed39\out)
HOST = Some(x86_64-pc-windows-msvc)
cargo:rerun-if-env-changed=CC_aarch64-linux-android
CC_aarch64-linux-android = None
cargo:rerun-if-env-changed=CC_aarch64_linux_android
CC_aarch64_linux_android = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:warning=Compiler family detection failed due to error: ToolNotFound: Failed to find tool. Is `aarch64-linux-android-clang` installed? (see https://docs.rs/cc/latest/cc/#compile-time-requirements for help)
RUSTC_WRAPPER = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some(true)
cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
CFLAGS_aarch64-linux-android = None
cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
CFLAGS_aarch64_linux_android = None
cargo:rerun-if-env-changed=TARGET_CFLAGS
TARGET_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:warning=Compiler family detection failed due to error: ToolNotFound: Failed to find tool. Is `aarch64-linux-android-clang` installed? (see https://docs.rs/cc/latest/cc/#compile-time-requirements for help)
cargo:warning=In file included from crypto/curve25519/curve25519.c:24:
cargo:warning=In file included from crypto/curve25519/internal.h:20:
cargo:warning=In file included from crypto/curve25519/../internal.h:115:
cargo:warning=include\ring-core/check.h:27:11: fatal error: 'assert.h' file not found
cargo:warning= 27 | # include <assert.h>
cargo:warning= | ^~~~~~~~~~
cargo:warning=1 error generated.
--- stderr
error occurred: Command "clang.exe" "--target=aarch64-linux-android" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-I" "include" "-I" "C:\\Users\\Administrator\\code\\rust\\tauri-app\\src-tauri\\target\\aarch64-linux-android\\debug\\build\\ring-f989e4c358f1ed39\\out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-g3" "-DNDEBUG" "-o" "C:\\Users\\Administrator\\code\\rust\\tauri-app\\src-tauri\\target\\aarch64-linux-android\\debug\\build\\ring-f989e4c358f1ed39\\out\\fad98b632b8ce3cc-curve25519.o" "-c" "crypto/curve25519/curve25519.c" with args clang.exe did not execute successfully (status code exit code: 1).
warning: build failed, waiting for other jobs to finish...
$ clang --version
clang version 17.0.3
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\Llvm\bin
I came across the same bug, and make it to build successfully by running tauri command within Developer Command Prompt for VS 2022 or Developer PowerShell for VS 2022 from Visual Studio.
create new tauri project on window11 then build failed
Administrator@LOCAL MINGW64 ~/Downloads
$ bun create tauri-app
✔ Project name · x
✔ Identifier · com.x.app
✔ Choose which language to use for your frontend · TypeScript / JavaScript - (pnpm, yarn, npm, deno, bun)
✔ Choose your package manager · bun
✔ Choose your UI template · Vue - (https://vuejs.org/)
✔ Choose your UI flavor · TypeScript
Template created! To get started run:
cd x
bun install
bun run tauri android init
For Desktop development, run:
bun run tauri dev
For Android development, run:
bun run tauri android dev
Administrator@LOCAL MINGW64 ~/Downloads
$ cd x
Administrator@LOCAL MINGW64 ~/Downloads/x
$ bun install
bun install v1.1.33 (247456b6)
+ @tauri-apps/cli@2.0.4
+ @vitejs/plugin-vue@5.1.4
+ typescript@5.6.3
+ vite@5.4.10
+ vue-tsc@2.1.10
+ @tauri-apps/api@2.0.3
+ @tauri-apps/plugin-shell@2.0.1
+ vue@3.5.12
51 packages installed [19.77s]
Administrator@LOCAL MINGW64 ~/Downloads/x
$ bun run tauri android init
$ tauri android init
Generating Android Studio project...
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri" relative to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\x" is "..\\..\\..\\"
victory: Project generated successfully!
Make cool apps! 🌻 🐕 🎉
Administrator@LOCAL MINGW64 ~/Downloads/x
$ bun run tauri android build
$ tauri android build
Running beforeBuildCommand `bun run build`
$ vue-tsc --noEmit && vite build
vite v5.4.10 building for production...
✓ 18 modules transformed.
dist/index.html 0.49 kB │ gzip: 0.31 kB
dist/assets/index-C7aomm0h.css 1.40 kB │ gzip: 0.66 kB
dist/assets/index-Cpii7hfu.js 62.61 kB │ gzip: 25.29 kB
✓ built in 317ms
Updating `mirror` index
Locking 438 packages to latest compatible versions
Adding base64 v0.21.7 (latest: v0.22.1)
Adding bitflags v1.3.2 (latest: v2.6.0)
Adding cairo-rs v0.18.5 (latest: v0.20.5)
Adding cairo-sys-rs v0.18.2 (latest: v0.20.0)
Adding cargo_toml v0.17.2 (latest: v0.20.5)
Adding cfb v0.7.3 (latest: v0.10.0)
Adding cfg-expr v0.15.8 (latest: v0.17.0)
Adding convert_case v0.4.0 (latest: v0.6.0)
Adding cssparser v0.27.2 (latest: v0.34.0)
Adding derive_more v0.99.18 (latest: v1.0.0)
Adding fluent-uri v0.1.4 (latest: v0.3.2)
Adding gdk-pixbuf v0.18.5 (latest: v0.20.4)
Adding gdk-pixbuf-sys v0.18.0 (latest: v0.20.4)
Adding generic-array v0.14.7 (latest: v1.1.0)
Adding getrandom v0.1.16 (latest: v0.2.15)
Adding gio v0.18.4 (latest: v0.20.5)
Adding gio-sys v0.18.1 (latest: v0.20.5)
Adding glib v0.18.5 (latest: v0.20.5)
Adding glib-macros v0.18.5 (latest: v0.20.5)
Adding glib-sys v0.18.1 (latest: v0.20.5)
Adding gobject-sys v0.18.0 (latest: v0.20.4)
Adding hashbrown v0.12.3 (latest: v0.15.1)
Adding heck v0.4.1 (latest: v0.5.0)
Adding hermit-abi v0.3.9 (latest: v0.4.0)
Adding html5ever v0.26.0 (latest: v0.29.0)
Adding indexmap v1.9.3 (latest: v2.6.0)
Adding itoa v0.4.8 (latest: v1.0.11)
Adding jni-sys v0.3.0 (latest: v0.4.0)
Adding json-patch v2.0.0 (latest: v3.0.1)
Adding jsonptr v0.4.7 (latest: v0.6.3)
Adding libloading v0.7.4 (latest: v0.8.5)
Adding malloc_buf v0.0.6 (latest: v1.0.0)
Adding markup5ever v0.11.0 (latest: v0.14.0)
Adding pango v0.18.3 (latest: v0.20.4)
Adding pango-sys v0.18.0 (latest: v0.20.4)
Adding phf v0.8.0 (latest: v0.11.2)
Adding phf v0.10.1 (latest: v0.11.2)
Adding phf_codegen v0.8.0 (latest: v0.11.2)
Adding phf_codegen v0.10.0 (latest: v0.11.2)
Adding phf_generator v0.8.0 (latest: v0.11.2)
Adding phf_generator v0.10.0 (latest: v0.11.2)
Adding phf_macros v0.8.0 (latest: v0.11.2)
Adding phf_shared v0.8.0 (latest: v0.11.2)
Adding phf_shared v0.10.0 (latest: v0.11.2)
Adding proc-macro-crate v1.3.1 (latest: v3.2.0)
Adding proc-macro-crate v2.0.2 (latest: v3.2.0)
Adding quick-xml v0.32.0 (latest: v0.37.0)
Adding rand v0.7.3 (latest: v0.8.5)
Adding rand_chacha v0.2.2 (latest: v0.3.1)
Adding rand_core v0.5.1 (latest: v0.6.4)
Adding rand_hc v0.2.0 (latest: v0.3.2)
Adding rand_pcg v0.2.1 (latest: v0.3.1)
Adding selectors v0.22.0 (latest: v0.26.0)
Adding serialize-to-javascript v0.1.1 (latest: v0.1.2)
Adding serialize-to-javascript-impl v0.1.1 (latest: v0.1.2)
Adding servo_arc v0.1.1 (latest: v0.4.0)
Adding siphasher v0.3.11 (latest: v1.0.1)
Adding soup3 v0.5.0 (latest: v0.7.0)
Adding soup3-sys v0.5.0 (latest: v0.7.0)
Adding syn v1.0.109 (latest: v2.0.87)
Adding system-deps v6.2.2 (latest: v7.0.3)
Adding toml v0.7.8 (latest: v0.8.19)
Adding toml v0.8.2 (latest: v0.8.19)
Adding toml_datetime v0.6.3 (latest: v0.6.8)
Adding toml_edit v0.19.15 (latest: v0.22.22)
Adding toml_edit v0.20.2 (latest: v0.22.22)
Adding wasi v0.9.0+wasi-snapshot-preview1 (latest: v0.13.3+wasi-0.2.2)
Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.3+wasi-0.2.2)
Adding windows-core v0.52.0 (latest: v0.58.0)
Adding windows-registry v0.2.0 (latest: v0.3.0)
Adding windows-strings v0.1.0 (latest: v0.2.0)
Adding windows-sys v0.45.0 (latest: v0.59.0)
Adding windows-sys v0.48.0 (latest: v0.59.0)
Adding windows-sys v0.52.0 (latest: v0.59.0)
Adding windows-targets v0.42.2 (latest: v0.52.6)
Adding windows-targets v0.48.5 (latest: v0.52.6)
Adding windows_aarch64_gnullvm v0.42.2 (latest: v0.52.6)
Adding windows_aarch64_gnullvm v0.48.5 (latest: v0.52.6)
Adding windows_aarch64_msvc v0.42.2 (latest: v0.52.6)
Adding windows_aarch64_msvc v0.48.5 (latest: v0.52.6)
Adding windows_i686_gnu v0.42.2 (latest: v0.52.6)
Adding windows_i686_gnu v0.48.5 (latest: v0.52.6)
Adding windows_i686_msvc v0.42.2 (latest: v0.52.6)
Adding windows_i686_msvc v0.48.5 (latest: v0.52.6)
Adding windows_x86_64_gnu v0.42.2 (latest: v0.52.6)
Adding windows_x86_64_gnu v0.48.5 (latest: v0.52.6)
Adding windows_x86_64_gnullvm v0.42.2 (latest: v0.52.6)
Adding windows_x86_64_gnullvm v0.48.5 (latest: v0.52.6)
Adding windows_x86_64_msvc v0.42.2 (latest: v0.52.6)
Adding windows_x86_64_msvc v0.48.5 (latest: v0.52.6)
Adding winnow v0.5.40 (latest: v0.6.20)
Adding zerocopy v0.7.35 (latest: v0.8.9)
Adding zerocopy-derive v0.7.35 (latest: v0.8.9)
Downloaded is-docker v0.2.0 (registry `mirror`)
Downloaded ndk-context v0.1.1 (registry `mirror`)
Downloaded tao-macros v0.1.3 (registry `mirror`)
Downloaded windows-targets v0.42.2 (registry `mirror`)
Downloaded jni v0.21.1 (registry `mirror`)
Downloaded cesu8 v1.1.0 (registry `mirror`)
Downloaded android_system_properties v0.1.5 (registry `mirror`)
Downloaded android-tzdata v0.1.1 (registry `mirror`)
Downloaded pathdiff v0.2.2 (registry `mirror`)
Downloaded num_enum_derive v0.7.3 (registry `mirror`)
Downloaded is-wsl v0.4.0 (registry `mirror`)
Downloaded num_enum v0.7.3 (registry `mirror`)
Downloaded iana-time-zone v0.1.61 (registry `mirror`)
Downloaded windows-core v0.52.0 (registry `mirror`)
Downloaded jni-sys v0.3.0 (registry `mirror`)
Downloaded ndk v0.9.0 (registry `mirror`)
Downloaded combine v4.6.7 (registry `mirror`)
Downloaded ndk-sys v0.6.0+11769913 (registry `mirror`)
Downloaded windows_x86_64_msvc v0.42.2 (registry `mirror`)
Downloaded windows-sys v0.45.0 (registry `mirror`)
Downloaded 20 crates (4.1 MB) in 3.00s (largest was `windows-sys` at 2.6 MB)
Compiling proc-macro2 v1.0.89
Compiling unicode-ident v1.0.13
Compiling cfg-if v1.0.0
Compiling byteorder v1.5.0
Compiling serde v1.0.214
Compiling siphasher v0.3.11
Compiling autocfg v1.4.0
Compiling libc v0.2.161
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 thiserror v1.0.68
Compiling proc-macro-hack v0.5.20+deprecated
Compiling equivalent v1.0.1
Compiling hashbrown v0.15.1
Compiling smallvec v1.13.2
Compiling winnow v0.5.40
Compiling windows_x86_64_msvc v0.52.6
Compiling fnv v1.0.7
Compiling shlex v1.3.0
Compiling memchr v2.7.4
Compiling typeid v1.0.2
Compiling litemap v0.7.3
Compiling writeable v0.5.5
Compiling convert_case v0.4.0
Compiling strsim v0.11.1
Compiling ident_case v1.0.1
Compiling getrandom v0.2.15
Compiling serde_json v1.0.132
Compiling icu_locid_transform_data v1.5.0
Compiling once_cell v1.20.2
Compiling ryu v1.0.18
Compiling typenum v1.17.0
Compiling phf_shared v0.10.0
Compiling phf_shared v0.8.0
Compiling rand_core v0.6.4
Compiling cc v1.1.34
Compiling phf_shared v0.11.2
Compiling itoa v1.0.11
Compiling icu_properties_data v1.5.0
Compiling write16 v1.0.0
Compiling utf8_iter v1.0.4
Compiling semver v1.0.23
Compiling version_check v0.9.5
Compiling icu_normalizer_data v1.5.0
Compiling utf16_iter v1.0.5
Compiling scopeguard v1.2.0
Compiling new_debug_unreachable v1.0.6
Compiling precomputed-hash v0.1.1
Compiling mac v0.1.1
Compiling windows_x86_64_msvc v0.48.5
Compiling bitflags v1.3.2
Compiling percent-encoding v2.3.1
Compiling log v0.4.22
Compiling futf v0.1.5
Compiling lock_api v0.4.12
Compiling indexmap v1.9.3
Compiling utf-8 v0.7.6
Compiling dtoa v1.0.9
Compiling phf v0.10.1
Compiling aho-corasick v1.1.3
Compiling form_urlencoded v1.2.1
Compiling alloc-no-stdlib v2.0.4
Compiling regex-syntax v0.8.5
Compiling unic-char-range v0.9.0
Compiling hashbrown v0.12.3
Compiling indexmap v2.6.0
Compiling generic-array v0.14.7
Compiling tendril v0.4.3
Compiling unic-common v0.9.0
Compiling camino v1.1.9
Compiling nodrop v0.1.14
Compiling itoa v0.4.8
Compiling dtoa-short v0.3.5
Compiling matches v0.1.10
Compiling fxhash v0.2.1
Compiling thin-slice v0.1.1
Compiling schemars v0.8.21
Compiling anyhow v1.0.92
Compiling alloc-stdlib v0.2.2
Compiling unic-char-property v0.9.0
Compiling dyn-clone v1.0.17
Compiling windows-targets v0.52.6
Compiling unic-ucd-version v0.9.0
Compiling servo_arc v0.1.1
Compiling dunce v1.0.5
Compiling rand_core v0.5.1
Compiling windows-targets v0.48.5
Compiling glob v0.3.1
Compiling windows-sys v0.59.0
Compiling unic-ucd-ident v0.9.0
Compiling brotli-decompressor v4.0.1
Compiling windows-sys v0.48.0
Compiling pin-project-lite v0.2.15
Compiling vswhom-sys v0.1.2
Compiling rand_pcg v0.2.1
Compiling futures-core v0.3.31
Compiling ring v0.17.8
Compiling slab v0.4.9
Compiling parking_lot v0.12.3
Compiling option-ext v0.2.0
Compiling socket2 v0.5.7
Compiling mio v1.0.2
Compiling quote v1.0.37
Compiling heck v0.5.0
Compiling jni-sys v0.3.0
Compiling rustls-pki-types v1.10.0
Compiling simd-adler32 v0.3.7
Compiling brotli v7.0.0
Compiling syn v2.0.87
Compiling regex-automata v0.4.8
Compiling winapi-util v0.1.9
Compiling pin-utils v0.1.0
Compiling spin v0.9.8
Compiling httparse v1.9.5
Compiling futures-task v0.3.31
Compiling crossbeam-utils v0.8.20
Compiling same-file v1.0.6
Compiling vswhom v0.1.0
Compiling untrusted v0.9.0
Compiling adler2 v2.0.0
Compiling walkdir v2.5.0
Compiling crc32fast v1.4.2
Compiling cesu8 v1.1.0
Compiling raw-window-handle v0.6.2
Compiling rustls v0.23.16
Compiling miniz_oxide v0.8.0
Compiling try-lock v0.2.5
Compiling want v0.3.1
Compiling fdeflate v0.3.6
Compiling ndk-sys v0.6.0+11769913
Compiling futures-channel v0.3.31
Compiling tracing-core v0.1.32
Compiling subtle v2.6.1
Compiling bitflags v2.6.0
Compiling zeroize v1.8.1
Compiling cpufeatures v0.2.14
Compiling crypto-common v0.1.6
Compiling block-buffer v0.10.4
Compiling flate2 v1.0.34
Compiling tower-service v0.3.3
Compiling base64 v0.22.1
Compiling tauri-runtime v2.1.1
Compiling digest v0.10.7
Compiling wry v0.46.3
Compiling webpki-roots v0.26.6
Compiling instant v0.1.13
Compiling futures-sink v0.3.31
Compiling ndk-context v0.1.1
Compiling tracing v0.1.40
Compiling sha2 v0.10.8
Compiling lazy_static v1.5.0
Compiling tauri-runtime-wry v2.1.2
Compiling rustls-pemfile v2.2.0
Compiling png v0.17.14
Compiling dirs-sys v0.4.1
Compiling sync_wrapper v1.0.1
Compiling crossbeam-channel v0.5.13
Compiling is-docker v0.2.0
Compiling mime v0.3.17
Compiling ipnet v2.10.1
Compiling dirs v5.0.1
Compiling pathdiff v0.2.2
Compiling os_pipe v1.2.1
Compiling shared_child v1.0.1
Compiling encoding_rs v0.8.35
Compiling is-wsl v0.4.0
Compiling open v5.3.0
Compiling ico v0.3.0
Compiling regex v1.11.1
Compiling winreg v0.52.0
Compiling synstructure v0.13.1
Compiling darling_core v0.20.10
Compiling serde_derive_internals v0.29.1
Compiling cssparser v0.27.2
Compiling html5ever v0.26.0
Compiling serialize-to-javascript-impl v0.1.1
Compiling serde_derive v1.0.214
Compiling zerocopy-derive v0.7.35
Compiling zerofrom-derive v0.1.4
Compiling yoke-derive v0.7.4
Compiling zerovec-derive v0.10.3
Compiling displaydoc v0.2.5
Compiling icu_provider_macros v1.5.0
Compiling thiserror-impl v1.0.68
Compiling cssparser-macros v0.6.1
Compiling derive_more v0.99.18
Compiling ctor v0.2.8
Compiling schemars_derive v0.8.21
Compiling futures-macro v0.3.31
Compiling tao-macros v0.1.3
Compiling serde_repr v0.1.19
Compiling zerocopy v0.7.35
Compiling futures-util v0.3.31
Compiling zerofrom v0.1.4
Compiling darling_macro v0.20.10
Compiling ppv-lite86 v0.2.20
Compiling yoke v0.7.4
Compiling zerovec v0.10.4
Compiling rand_chacha v0.3.1
Compiling rand_chacha v0.2.2
Compiling darling v0.20.10
Compiling serde_with_macros v3.11.0
Compiling rand v0.7.3
Compiling rand v0.8.5
Compiling tinystr v0.7.6
Compiling icu_collections v1.5.0
Compiling phf_generator v0.10.0
Compiling phf_generator v0.11.2
Compiling phf_generator v0.8.0
Compiling icu_locid v1.5.0
Compiling phf_codegen v0.8.0
Compiling string_cache_codegen v0.5.2
Compiling phf_codegen v0.10.0
Compiling phf_macros v0.8.0
Compiling phf_macros v0.11.2
Compiling selectors v0.22.0
Compiling markup5ever v0.11.0
Compiling phf v0.8.0
Compiling phf v0.11.2
Compiling icu_provider v1.5.0
Compiling icu_locid_transform v1.5.0
Compiling icu_properties v1.5.1
Compiling rustls-webpki v0.102.8
Compiling serde_spanned v0.6.8
Compiling toml_datetime v0.6.3
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 toml_edit v0.19.15
Compiling bytes v1.8.0
Compiling dpi v0.1.1
Compiling serde_urlencoded v0.7.1
Compiling rustc_version v0.4.1
Compiling cfb v0.7.3
Compiling serde-untagged v0.1.6
Compiling http v1.1.0
Compiling tokio v1.41.0
Compiling combine v4.6.7
Compiling icu_normalizer v1.5.0
Compiling infer v0.16.0
Compiling jsonptr v0.4.7
Compiling cargo_metadata v0.18.1
Compiling jsonptr v0.6.3
Compiling json-patch v2.0.0
Compiling json-patch v3.0.1
Compiling idna_adapter v1.2.0
Compiling idna v1.0.3
Compiling serialize-to-javascript v0.1.1
Compiling http-body v1.0.1
Compiling url v2.5.3
Compiling kuchikiki v0.8.2
Compiling http-body-util v0.1.2
Compiling toml v0.7.8
Compiling toml v0.8.2
Compiling proc-macro-crate v2.0.2
Compiling urlpattern v0.3.0
Compiling embed-resource v2.5.0
Compiling cargo_toml v0.17.2
Compiling tauri-winres v0.1.1
Compiling num_enum_derive v0.7.3
Compiling tauri-utils v2.0.2
Compiling num_enum v0.7.3
Compiling ndk v0.9.0
Compiling hyper v1.5.0
Compiling tokio-rustls v0.26.0
Compiling tokio-util v0.7.12
Compiling jni v0.21.1
Compiling hyper-util v0.1.10
Compiling hyper-rustls v0.27.3
Compiling tauri-build v2.0.2
Compiling tauri-plugin v2.0.2
Compiling tauri-codegen v2.0.2
Compiling reqwest v0.12.9
Compiling tao v0.30.5
Compiling tauri v2.0.6
Compiling tauri-plugin-shell v2.0.2
Compiling tauri-macros v2.0.2
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
Finished `release` profile [optimized] target(s) in 36.53s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
Info symlink at "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a\\libx_lib.so" points to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so"
$ tauri android android-studio-script --release --target aarch64
<=====--------> 46% EXECUTING [23s]
Compiling wry v0.46.3UTING [26s]
Compiling tauri v2.0.6TING [26s]
Compiling tauri-plugin-shell v2.0.2
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
Compiling tauri-runtime-wry v2.1.2
w: file:///C:/Users/Administrator/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/tauri-2.0.6/mobile/android/src/main/java/app/tauri/plugin/PluginMethodData.kt:11:23 Parameter 'methodDecorator' is never used
error: could not compile `x` (lib)]
Caused by:
process didn't exit successfully: `C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name x_lib --edition=2021 'src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --crate-type cdylib --crate-type rlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=078d83c8d1ab1a38 --out-dir 'C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps' --target aarch64-linux-android -C 'linker=C:\Users\Administrator\AppData\Local\Android\Sdk\ndk\28.0.12433566\toolchains/llvm/prebuilt/windows-x86_64\bin\aarch64-linux-android24-clang.cmd' -C strip=debuginfo -L 'dependency=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps' -L 'dependency=C:\Users\Administrator\Downloads\x\src-tauri\target\release\deps' --extern 'serde=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libserde-944cc0c3928c4da1.rlib' --extern 'serde_json=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libserde_json-795cdb9bb108f57d.rlib' --extern 'tauri=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libtauri-b98ea88d13018163.rlib' --extern 'tauri_plugin_shell=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libtauri_plugin_shell-e8fb9568acda6ea3.rlib' -Clink-arg=-landroid -Clink-arg=-llog -Clink-arg=-lOpenSLES -L 'native=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\build\ring-7737b9a3659485ee\out' --cfg mobile --check-cfg 'cfg(desktop)' --check-cfg 'cfg(mobile)' --check-cfg 'cfg(dev)'` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
`Failed to run `cargo build`: command ["cargo", "build", "--package", "x", "--manifest-path", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
Error `Failed to run `cargo build`: command ["cargo", "build", "--package", "x", "--manifest-path", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
error: script "tauri" exited with code 1
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:rustBuildArm64Release'.
> A problem occurred starting process 'command 'bun.cmd''
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 39s
Failed to assemble APK: command ["C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android"] exited with code 1: command ["C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android"] exited with code 1
Error Failed to assemble APK: command ["C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android"] exited with code 1: command ["C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android"] exited with code 1
error: script "tauri" exited with code 1
use Developer PowerShell for VS 2022
tools
PS C:\Users\Administrator> cd .\Downloads\x\
PS C:\Users\Administrator\Downloads\x> bun run tauri android init
$ tauri android init
Generating Android Studio project...
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri" relative to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\x" is "..\\..\\..\\"
victory: Project generated successfully!
Make cool apps! 🌻 🐕 🎉
PS C:\Users\Administrator\Downloads\x> bun run tauri android build
$ tauri android build
Running beforeBuildCommand `bun run build`
$ vue-tsc --noEmit && vite build
vite v5.4.10 building for production...
✓ 18 modules transformed.
dist/index.html 0.49 kB │ gzip: 0.31 kB
dist/assets/index-C7aomm0h.css 1.40 kB │ gzip: 0.66 kB
dist/assets/index-Cpii7hfu.js 62.61 kB │ gzip: 25.29 kB
✓ built in 313ms
Compiling vswhom-sys v0.1.2
Compiling vswhom v0.1.0
Compiling embed-resource v2.5.0
Compiling tauri-winres v0.1.1
Compiling tauri-build v2.0.2
Compiling tauri v2.0.6
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
Compiling tauri-plugin-shell v2.0.2
error: could not compile `x` (lib)
Caused by:
process didn't exit successfully: `C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name x_lib --edition=2021 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=236 --crate-type staticlib --crate-type cdylib --crate-type rlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" -C metadata=078d83c8d1ab1a38 --out-dir C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps --target aarch64-linux-android -C linker=C:\Users\Administrator\AppData\Local\Android\Sdk\ndk\28.0.12433566\toolchains/llvm/prebuilt/windows-x86_64\bin\aarch64-linux-android24-clang.cmd -C strip=debuginfo -L dependency=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps -L dependency=C:\Users\Administrator\Downloads\x\src-tauri\target\release\deps --extern serde=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libserde-944cc0c3928c4da1.rlib --extern serde_json=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libserde_json-795cdb9bb108f57d.rlib --extern tauri=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libtauri-b98ea88d13018163.rlib --extern tauri_plugin_shell=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libtauri_plugin_shell-e8fb9568acda6ea3.rlib -Clink-arg=-landroid -Clink-arg=-llog -Clink-arg=-lOpenSLES -L native=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\build\ring-7737b9a3659485ee\out --cfg mobile --check-cfg cfg(desktop) --check-cfg cfg(mobile) --check-cfg cfg(dev)` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
`Failed to run `cargo build`: command ["cargo", "build", "--package", "x", "--manifest-path", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
Error `Failed to run `cargo build`: command ["cargo", "build", "--package", "x", "--manifest-path", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
error: script "tauri" exited with code 1
PS C:\Users\Administrator\Downloads\x> bun run tauri android build
$ tauri android build
Running beforeBuildCommand `bun run build`
$ vue-tsc --noEmit && vite build
vite v5.4.10 building for production...
✓ 18 modules transformed.
dist/index.html 0.49 kB │ gzip: 0.31 kB
dist/assets/index-C7aomm0h.css 1.40 kB │ gzip: 0.66 kB
dist/assets/index-Cpii7hfu.js 62.61 kB │ gzip: 25.29 kB
✓ built in 322ms
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
error: could not compile `x` (lib)
Caused by:
process didn't exit successfully: `C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name x_lib --edition=2021 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=236 --crate-type staticlib --crate-type cdylib --crate-type rlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" -C metadata=078d83c8d1ab1a38 --out-dir C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps --target aarch64-linux-android -C linker=C:\Users\Administrator\AppData\Local\Android\Sdk\ndk\28.0.12433566\toolchains/llvm/prebuilt/windows-x86_64\bin\aarch64-linux-android24-clang.cmd -C strip=debuginfo -L dependency=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps -L dependency=C:\Users\Administrator\Downloads\x\src-tauri\target\release\deps --extern serde=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libserde-944cc0c3928c4da1.rlib --extern serde_json=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libserde_json-795cdb9bb108f57d.rlib --extern tauri=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libtauri-b98ea88d13018163.rlib --extern tauri_plugin_shell=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\deps\libtauri_plugin_shell-e8fb9568acda6ea3.rlib -Clink-arg=-landroid -Clink-arg=-llog -Clink-arg=-lOpenSLES -L native=C:\Users\Administrator\Downloads\x\src-tauri\target\aarch64-linux-android\release\build\ring-7737b9a3659485ee\out --cfg mobile --check-cfg cfg(desktop) --check-cfg cfg(mobile) --check-cfg cfg(dev)` (exit code: 0xc0000374, STATUS_HEAP_CORRUPTION)
`Failed to run `cargo build`: command ["cargo", "build", "--package", "x", "--manifest-path", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
Error `Failed to run `cargo build`: command ["cargo", "build", "--package", "x", "--manifest-path", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
error: script "tauri" exited with code 1
PS C:\Users\Administrator\Downloads\x> bun run tauri android build
$ tauri android build
Running beforeBuildCommand `bun run build`
$ vue-tsc --noEmit && vite build
vite v5.4.10 building for production...
✓ 18 modules transformed.
dist/index.html 0.49 kB │ gzip: 0.31 kB
dist/assets/index-C7aomm0h.css 1.40 kB │ gzip: 0.66 kB
dist/assets/index-Cpii7hfu.js 62.61 kB │ gzip: 25.29 kB
✓ built in 315ms
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
Finished `release` profile [optimized] target(s) in 7.87s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
Info symlink at "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a\\libx_lib.so" points to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so"
Info symlink at "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/armeabi-v7a\\libx_lib.so" points to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so"
Info symlink at "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/x86\\libx_lib.so" points to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so"
Info symlink at "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/x86_64\\libx_lib.so" points to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so"
$ tauri android android-studio-script --release --target aarch64
<=========----> 74% EXECUTING [1s]
> :app:rustBuildArm64Release Finished `release` profile [optimized] target(s) in 0.29s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
<=========----> 75% EXECUTING [4s]
> :app:rustBuildArmRelease $ tauri android android-studio-script --release --target armv7
Compiling tauri v2.0.6TING [6s]27.0.0.1:53115 conn_id=1
Compiling tauri-plugin-shell v2.0.2
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
Finished `release` profile [optimized] target(s) in 10.04s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/armeabi-v7a"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libc.so"
$ tauri android android-studio-script --release --target i686
<=========----> 75% EXECUTING [17s]
> :app:rustBuildX86Release Compiling tauri v2.0.6TING [19s]
Compiling tauri-plugin-shell v2.0.2.0.1:53262 conn_id=2
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
Finished `release` profile [optimized] target(s) in 9.50s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/x86"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
<=========----> 76% EXECUTING [29s]
> :app:rustBuildX86_64Release $ tauri android android-studio-script --release --target x86_64
Compiling tauri v2.0.6TING [31s]7.0.0.1:53399 conn_id=3
Compiling tauri-plugin-shell v2.0.2
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
error: could not compile `tauri` (lib)
Caused by:
process didn't exit successfully: `C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name tauri --edition=2021 C:\Users\Administrator\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\tauri-2.0.6\src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"common-controls-v6\"" --cfg "feature=\"compression\"" --cfg "feature=\"custom-protocol\"" --cfg "feature=\"default\"" --cfg "feature=\"objc-exception\"" --cfg "feature=\"rustls-tls\"" --cfg "feature=\"tauri-runtime-wry\"" --cfg "feature=\"wry\"" --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values(\"common-controls-v6\", \"compression\", \"config-json5\", \"config-toml\", \"custom-protocol\", \"data-url\", \"default\", \"devtools\", \"http-range\", \"image\", \"image-ico\", \"image-png\", \"isolation\", \"linux-libxdo\", \"macos-private-api\", \"macos-proxy\", \"native-tls\", \"native-tls-vendored\", \"objc-exception\", \"process-relaunch-dangerous-allow-symlink-macos\", \"protocol-asset\", \"rustls-tls\", \"specta\", \"tauri-runtime-wry\", \"test\", \"tracing\", \"tray-icon\", \"unstable\", \"uuid\", \"webview-data-url\", \"wry\"))" -C metadata=462cd44cc911aca2 -C extra-filename=-462cd44cc911aca2 --out-dir C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps --target x86_64-linux-android -C linker=C:\Users\Administrator\AppData\Local\Android\Sdk\ndk\28.0.12433566\toolchains/llvm/prebuilt/windows-x86_64\bin\x86_64-linux-android24-clang.cmd -C strip=debuginfo -L dependency=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps -L dependency=C:\Users\Administrator\Downloads\x\src-tauri\target\release\deps --extern anyhow=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libanyhow-302dd33982f873e2.rmeta --extern bytes=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libbytes-1be801945a6f24cc.rmeta --extern dirs=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libdirs-241d9f0083aee798.rmeta --extern dunce=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libdunce-ece5a529757c6c59.rmeta --extern futures_util=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libfutures_util-f0625f61c05a8420.rmeta --extern getrandom=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libgetrandom-c12bca6d84743f67.rmeta --extern glob=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libglob-10a9ac7169b46e76.rmeta --extern heck=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libheck-1d3d047679a37b76.rmeta --extern http=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libhttp-e5e9c27be0d367e6.rmeta --extern jni=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libjni-9da2134f3634b804.rmeta --extern log=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\liblog-749245797c49d41d.rmeta --extern mime=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libmime-d3c648459c542836.rmeta --extern percent_encoding=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libpercent_encoding-f3d7315f28bad9ed.rmeta --extern raw_window_handle=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libraw_window_handle-0c79f3501cc9cdfb.rmeta --extern reqwest=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libreqwest-cad6282283931e5f.rmeta --extern serde=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libserde-abcec6648e69c0e0.rmeta --extern serde_json=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libserde_json-25104c6159c863e9.rmeta --extern serde_repr=C:\Users\Administrator\Downloads\x\src-tauri\target\release\deps\serde_repr-918bb7ec14c69f47.dll --extern serialize_to_javascript=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libserialize_to_javascript-a79d4ddcb590749c.rmeta --extern tauri_macros=C:\Users\Administrator\Downloads\x\src-tauri\target\release\deps\tauri_macros-42a668a1a22746b6.dll --extern tauri_runtime=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libtauri_runtime-a43cc2e95b690cc9.rmeta --extern tauri_runtime_wry=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libtauri_runtime_wry-f4a60f7388609a09.rmeta --extern tauri_utils=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libtauri_utils-ba225a541e53752f.rmeta --extern thiserror=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libthiserror-765cb10d3d047382.rmeta --extern tokio=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\libtokio-8e966443e698f968.rmeta --extern url=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\liburl-9cf802d9676dbbe9.rmeta --extern urlpattern=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\deps\liburlpattern-643ef9d4b28d4120.rmeta --cap-lints allow -Clink-arg=-landroid -Clink-arg=-llog -Clink-arg=-lOpenSLES -L native=C:\Users\Administrator\Downloads\x\src-tauri\target\x86_64-linux-android\release\build\ring-6f40203854a4bd4e\out --cfg custom_protocol --cfg mobile --check-cfg cfg(custom_protocol) --check-cfg cfg(dev) --check-cfg cfg(desktop) --check-cfg cfg(mobile)` (exit code: 0xc0000374, STATUS_HEAP_CORRUPTION)
`Failed to run `cargo build`: command ["cargo", "build", "--package", "x", "--manifest-path", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\Cargo.toml", "--target", "x86_64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
Error `Failed to run `cargo build`: command ["cargo", "build", "--package", "x", "--manifest-path", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\Cargo.toml", "--target", "x86_64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
error: script "tauri" exited with code 1
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:rustBuildX86_64Release'.
> A problem occurred starting process 'command 'bun.cmd''
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 32s
Failed to assemble APK: command ["C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android"] exited with code 1: command ["C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android"] exited with code 1
Error Failed to assemble APK: command ["C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android"] exited with code 1: command ["C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android"] exited with code 1
error: script "tauri" exited with code 1
i have no idea to solve it
btw,
PS C:\Users\Administrator\Downloads\x> cargo tauri info
[✔] Environment
- OS: Windows 10.0.22631 x86_64 (X64)
✔ WebView2: 130.0.2849.56
✔ MSVC:
- Visual Studio Community 2022
- Visual Studio 生成工具 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 (environment override by RUSTUP_TOOLCHAIN)
- node: 22.10.0
- yarn: 1.22.22
- npm: 10.9.0
- bun: 1.1.33
[-] Packages
- tauri 🦀: 2.0.6
- tauri-build 🦀: 2.0.2
- wry 🦀: 0.46.3
- tao 🦀: 0.30.5
- tauri-cli 🦀: 2.0.4
- @tauri-apps/api : 2.0.3
- @tauri-apps/cli : 2.0.5
[-] 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: Vue.js
- bundler: Vite
Another windows 11 user / developer here. I was successfully able to build android app.
tauri info
PowerShell 7.5.0-preview.5
PS E:\GitHub\ahqstore-android> pnpm tauri info
> ahqstore-android@0.0.2 tauri E:\GitHub\ahqstore-android
> tauri "info"
[✔] Environment
- OS: Windows 10.0.27729 x86_64 (X64)
✔ WebView2: 130.0.2849.56
✔ 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: 22.9.0
- pnpm: 9.12.3
- yarn: 1.22.19
- npm: 10.8.3
- bun: 1.1.13
- deno: deno 2.0.0-rc.5
[-] Packages
- tauri 🦀: 2.0.3
- tauri-build 🦀: 2.0.1
- wry 🦀: 0.46.0
- tao 🦀: 0.30.3
- @tauri-apps/api : 2.0.2 (outdated, latest: 2.0.3)
- @tauri-apps/cli : 2.0.3 (outdated, latest: 2.0.4)
[-] Plugins
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
Another windows 11 user / developer here. I was successfully able to build android app.
tauri info
PowerShell 7.5.0-preview.5 PS E:\GitHub\ahqstore-android> pnpm tauri info > ahqstore-android@0.0.2 tauri E:\GitHub\ahqstore-android > tauri "info" [✔] Environment - OS: Windows 10.0.27729 x86_64 (X64) ✔ WebView2: 130.0.2849.56 ✔ 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: 22.9.0 - pnpm: 9.12.3 - yarn: 1.22.19 - npm: 10.8.3 - bun: 1.1.13 - deno: deno 2.0.0-rc.5 [-] Packages - tauri 🦀: 2.0.3 - tauri-build 🦀: 2.0.1 - wry 🦀: 0.46.0 - tao 🦀: 0.30.3 - @tauri-apps/api : 2.0.2 (outdated, latest: 2.0.3) - @tauri-apps/cli : 2.0.3 (outdated, latest: 2.0.4) [-] Plugins [-] App - build-type: bundle - CSP: unset - frontendDist: ../dist - devUrl: http://localhost:1420/ - framework: React - bundler: Vite
npm command build successfully
$ npm run tauri android build
> x@0.1.0 tauri
> tauri android build
Running beforeBuildCommand `npm run build`
> x@0.1.0 build
> vue-tsc --noEmit && vite build
vite v5.4.10 building for production...
✓ 18 modules transformed.
dist/index.html 0.49 kB │ gzip: 0.31 kB
dist/assets/index-C7aomm0h.css 1.40 kB │ gzip: 0.66 kB
dist/assets/index-Cpii7hfu.js 62.61 kB │ gzip: 25.29 kB
✓ built in 325ms
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
Finished `release` profile [optimized] target(s) in 8.38s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
Info symlink at "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a\\libx_lib.so" points to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so"
Info symlink at "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/armeabi-v7a\\libx_lib.so" points to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so"
Info symlink at "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/x86\\libx_lib.so" points to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so"
Info symlink at "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/x86_64\\libx_lib.so" points to "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so"
$ tauri android android-studio-script --release --target aarch64
<=========----> 72% EXECUTING [738ms]nnotations
Finished `release` profile [optimized] target(s) in 0.34s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a"onn_id=0
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
<=========----> 73% EXECUTING [3s]
$ tauri android android-studio-script --release --target armv7
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
Finished `release` profile [optimized] target(s) in 8.31s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/armeabi-v7a"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libc.so"
<=========----> 74% EXECUTING [14s]
$ tauri android android-studio-script --release --target i686
Compiling tauri v2.0.6TING [16s]
Compiling tauri-plugin-shell v2.0.2e0.1:51003 conn_id=2
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
Finished `release` profile [optimized] target(s) in 9.94s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/x86"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
<=========----> 74% EXECUTING [26s]
$ tauri android android-studio-script --release --target x86_64
Compiling tauri v2.0.6TING [29s]
Compiling tauri-plugin-shell v2.0.2
Compiling x v0.1.0 (C:\Users\Administrator\Downloads\x\src-tauri)
Finished `release` profile [optimized] target(s) in 9.65s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/x86_64"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
<==========---> 77% EXECUTING [532ms]
$ tauri android android-studio-script --release --target aarch64
Finished `release` profile [optimized] target(s) in 0.33s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\aarch64-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
<==========---> 78% EXECUTING [3s]
$ tauri android android-studio-script --release --target armv7
Finished `release` profile [optimized] target(s) in 0.32s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/armeabi-v7a"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\armv7-linux-androideabi\\release\\libx_lib.so" requires shared lib "libc.so"
<==========---> 79% EXECUTING [6s]
$ tauri android android-studio-script --release --target i686
Finished `release` profile [optimized] target(s) in 0.32s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/x86"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\i686-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
$ tauri android android-studio-script --release --target x86_64
<==========---> 80% EXECUTING [8s]
Finished `release` profile [optimized] target(s) in 0.32s
Info symlinking lib "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" in jniLibs dir "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\gen/android\\app/src/main/jniLibs/x86_64"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\Administrator\\Downloads\\x\\src-tauri\\target\\x86_64-linux-android\\release\\libx_lib.so" requires shared lib "libc.so"
Finished 1 APK at:
C:\Users\Administrator\Downloads\x\src-tauri\gen/android\app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk
Finished 1 AAB at:
C:\Users\Administrator\Downloads\x\src-tauri\gen/android\app/build/outputs/bundle/universalRelease/app-universal-release.aab
could you run the following command in
src-tauri
and see if it errors?cargo build --lib --target aarch64-linux-android
if that works fine, try running
tauri android build -vvv
run npm run tauri android build
successfully in the new project
Doesn't that mean that the issue is resolved?
Edit: My bad, that means we'll now have to look why bun isn't working. Amazing
Doesn't that mean that the issue is resolved?
Edit: My bad, that means we'll now have to look why bun isn't working. Amazing
No.
Doesn't that mean that the issue is resolved?
Edit: My bad, that means we'll now have to look why bun isn't working. Amazing
in the current system of windows 11, i created a new tauri2 project then i run npm build command
successfully build android app, the bun build command
run failed . by i use existed tauri2 project. the command build failed too.
cargo tauri build -vvv
existed tauri2 project, output [excerpted error code]:2024-11-05T20:26:56.480+0800 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.statistics.KotlinBuildStatHandler] org.jetbrains.kotlin.gradle.plugin.statistics:type=StatsService,name=v2
javax.management.InstanceNotFoundException: org.jetbrains.kotlin.gradle.plugin.statistics:type=StatsService,name=v2
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1088)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:811)
at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
at org.jetbrains.kotlin.gradle.plugin.statistics.JMXKotlinBuildStatsService.callJmx(KotlinBuildStatsService.kt:207)
at org.jetbrains.kotlin.gradle.plugin.statistics.JMXKotlinBuildStatsService.access$callJmx(KotlinBuildStatsService.kt:203)
at org.jetbrains.kotlin.gradle.plugin.statistics.JMXKotlinBuildStatsService$report$2.invoke(KotlinBuildStatsService.kt:222)
at org.jetbrains.kotlin.gradle.plugin.statistics.KotlinBuildStatHandler$Companion.runSafe$kotlin_gradle_plugin_common(KotlinBuildStatHandler.kt:33)
at org.jetbrains.kotlin.gradle.plugin.statistics.JMXKotlinBuildStatsService.report(KotlinBuildStatsService.kt:221)
at org.jetbrains.kotlin.statistics.metrics.IStatisticsValuesConsumer$DefaultImpls.report$default(StatisticsValues.kt:11)
at org.jetbrains.kotlin.gradle.plugin.statistics.KotlinBuildStatsService$Companion.applyIfInitialised(KotlinBuildStatsService.kt:161)
at org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService.recordBuildFinished$kotlin_gradle_plugin_common(BuildFlowService.kt:115)
at org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService.close(BuildFlowService.kt:108)
at org.gradle.api.services.internal.RegisteredBuildServiceProvider.lambda$maybeStop$2(RegisteredBuildServiceProvider.java:202)
at org.gradle.internal.Try$Success.ifSuccessful(Try.java:190)
at org.gradle.api.services.internal.RegisteredBuildServiceProvider.maybeStop(RegisteredBuildServiceProvider.java:199)
at org.gradle.api.services.internal.DefaultBuildServicesRegistry.lambda$discardAll$8(DefaultBuildServicesRegistry.java:295)
at org.gradle.internal.build.ExecutionResult.forEach(ExecutionResult.java:128)
at org.gradle.api.services.internal.DefaultBuildServicesRegistry.lambda$discardAll$9(DefaultBuildServicesRegistry.java:291)
at org.gradle.api.services.internal.DefaultBuildServicesRegistry.withRegistrations(DefaultBuildServicesRegistry.java:103)
at org.gradle.api.services.internal.DefaultBuildServicesRegistry.discardAll(DefaultBuildServicesRegistry.java:288)
at org.gradle.api.services.internal.DefaultBuildServicesRegistry.access$100(DefaultBuildServicesRegistry.java:61)
at org.gradle.api.services.internal.DefaultBuildServicesRegistry$ServiceCleanupListener.buildFinished(DefaultBuildServicesRegistry.java:390)
at jdk.internal.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.event.DefaultListenerManager$ListenerDetails.dispatch(DefaultListenerManager.java:472)
at org.gradle.internal.event.DefaultListenerManager$ListenerDetails.dispatch(DefaultListenerManager.java:454)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:84)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:70)
at org.gradle.internal.event.DefaultListenerManager$EventBroadcast$ListenerDispatch.dispatch(DefaultListenerManager.java:443)
at org.gradle.internal.event.DefaultListenerManager$EventBroadcast$ListenerDispatch.dispatch(DefaultListenerManager.java:431)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:268)
at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:170)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:84)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:70)
at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:380)
at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:272)
at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:148)
at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:92)
at jdk.proxy1/jdk.proxy1.$Proxy40.buildFinished(Unknown Source)
at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$finishBuild$11(DefaultBuildLifecycleController.java:346)
at org.gradle.internal.build.ExecutionResult.maybeFailing(ExecutionResult.java:94)
at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$finishBuild$12(DefaultBuildLifecycleController.java:346)
at org.gradle.internal.model.StateTransitionController.doTransitionWithFailures(StateTransitionController.java:241)
at org.gradle.internal.model.StateTransitionController.lambda$transition$13(StateTransitionController.java:232)
at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44)
at org.gradle.internal.model.StateTransitionController.transition(StateTransitionController.java:229)
at org.gradle.internal.build.DefaultBuildLifecycleController.finishBuild(DefaultBuildLifecycleController.java:336)
at org.gradle.internal.buildtree.DefaultBuildTreeFinishExecutor.finishBuildTree(DefaultBuildTreeFinishExecutor.java:57)
at org.gradle.composite.internal.OperationFiringBuildTreeFinishExecutor$1.call(OperationFiringBuildTreeFinishExecutor.java:46)
at org.gradle.composite.internal.OperationFiringBuildTreeFinishExecutor$1.call(OperationFiringBuildTreeFinishExecutor.java:42)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.composite.internal.OperationFiringBuildTreeFinishExecutor.finishBuildTree(OperationFiringBuildTreeFinishExecutor.java:42)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$runBuild$4(DefaultBuildTreeLifecycleController.java:125)
at org.gradle.internal.model.StateTransitionController.lambda$transition$6(StateTransitionController.java:169)
at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:266)
at org.gradle.internal.model.StateTransitionController.lambda$transition$7(StateTransitionController.java:169)
at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44)
at org.gradle.internal.model.StateTransitionController.transition(StateTransitionController.java:169)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:117)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:77)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:72)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run(ProblemReportingBuildActionRunner.java:49)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:65)
at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:140)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:130)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.internal.buildtree.InitDeprecationLoggingActionExecutor.execute(InitDeprecationLoggingActionExecutor.java:62)
at org.gradle.internal.buildtree.InitProblems.execute(InitProblems.java:36)
at org.gradle.internal.buildtree.DefaultBuildTreeContext.execute(DefaultBuildTreeContext.java:40)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:71)
at org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:60)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.execute(BuildTreeLifecycleBuildActionExecutor.java:71)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:61)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor.execute(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.lambda$execute$0(RunAsWorkerThreadBuildActionExecutor.java:36)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:267)
at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:131)
at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.execute(RunAsWorkerThreadBuildActionExecutor.java:36)
at org.gradle.tooling.internal.provider.continuous.ContinuousBuildActionExecutor.execute(ContinuousBuildActionExecutor.java:110)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecutor.execute(SubscribableBuildActionExecutor.java:64)
at org.gradle.internal.session.DefaultBuildSessionContext.execute(DefaultBuildSessionContext.java:46)
at org.gradle.internal.buildprocess.execution.BuildSessionLifecycleBuildActionExecutor$ActionImpl.apply(BuildSessionLifecycleBuildActionExecutor.java:92)
at org.gradle.internal.buildprocess.execution.BuildSessionLifecycleBuildActionExecutor$ActionImpl.apply(BuildSessionLifecycleBuildActionExecutor.java:80)
at org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:71)
at org.gradle.internal.buildprocess.execution.BuildSessionLifecycleBuildActionExecutor.execute(BuildSessionLifecycleBuildActionExecutor.java:62)
at org.gradle.internal.buildprocess.execution.BuildSessionLifecycleBuildActionExecutor.execute(BuildSessionLifecycleBuildActionExecutor.java:41)
at org.gradle.internal.buildprocess.execution.StartParamsValidatingActionExecutor.execute(StartParamsValidatingActionExecutor.java:64)
at org.gradle.internal.buildprocess.execution.StartParamsValidatingActionExecutor.execute(StartParamsValidatingActionExecutor.java:32)
at org.gradle.internal.buildprocess.execution.SessionFailureReportingActionExecutor.execute(SessionFailureReportingActionExecutor.java:51)
at org.gradle.internal.buildprocess.execution.SessionFailureReportingActionExecutor.execute(SessionFailureReportingActionExecutor.java:39)
at org.gradle.internal.buildprocess.execution.SetupLoggingActionExecutor.execute(SetupLoggingActionExecutor.java:47)
at org.gradle.internal.buildprocess.execution.SetupLoggingActionExecutor.execute(SetupLoggingActionExecutor.java:31)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:70)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.lambda$execute$0(ForwardClientInput.java:40)
at org.gradle.internal.daemon.clientinput.ClientInputForwarder.forwardInput(ClientInputForwarder.java:80)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:64)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator.lambda$runCommand$0(DaemonStateCoordinator.java:320)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
2024-11-05T20:26:56.481+0800 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Inject] [KOTLIN] Close BuildFlowService$Inject
2024-11-05T20:26:56.482+0800 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices$Inject] [KOTLIN] Disposed KotlinGradleBuildServices
2024-11-05T20:26:56.482+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Finish root build tree'
2024-11-05T20:26:56.482+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Finish root build tree' completed
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:minifyUniversalReleaseWithR8'.
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Compilation failed to complete
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --stacktrace option to get the stack trace.
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --scan to get full insights.
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Get more help at https://help.gradle.org.
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
2024-11-05T20:26:56.482+0800 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 4m 6s
2024-11-05T20:26:56.483+0800 [LIFECYCLE] [org.gradle.internal.buildevents.TaskExecutionStatisticsReporter] 386 actionable tasks: 56 executed, 330 up-to-date
2024-11-05T20:26:56.483+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Build finished for file system watching' started
2024-11-05T20:26:56.488+0800 [INFO] [org.gradle.internal.watch.registry.impl.HierarchicalFileWatcherUpdater] Watched directory hierarchies: [C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android, C:\Users\Administrator\Downloads\x\src-tauri\gen\android]
2024-11-05T20:26:56.490+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Build finished for file system watching'
2024-11-05T20:26:56.490+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Build finished for file system watching' completed
2024-11-05T20:26:56.491+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Build Output Cleanup Cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\buildSrc\.gradle\buildOutputCleanup)
2024-11-05T20:26:56.491+0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache outputFiles.bin (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\buildSrc\.gradle\buildOutputCleanup\outputFiles.bin)
2024-11-05T20:26:56.491+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Build Output Cleanup Cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\buildSrc\.gradle\buildOutputCleanup).
2024-11-05T20:26:56.491+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for execution history cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\buildSrc\.gradle\8.9\executionHistory)
2024-11-05T20:26:56.491+0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache executionHistory.bin (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\buildSrc\.gradle\8.9\executionHistory\executionHistory.bin)
2024-11-05T20:26:56.491+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on execution history cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\buildSrc\.gradle\8.9\executionHistory).
2024-11-05T20:26:56.491+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-supplier (C:\Users\Administrator\.gradle\caches\8.9\md-supplier)
2024-11-05T20:26:56.491+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-supplier (C:\Users\Administrator\.gradle\caches\8.9\md-supplier).
2024-11-05T20:26:56.492+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Build Output Cleanup Cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\buildOutputCleanup)
2024-11-05T20:26:56.492+0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache outputFiles.bin (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\buildOutputCleanup\outputFiles.bin)
2024-11-05T20:26:56.492+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Build Output Cleanup Cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\buildOutputCleanup).
2024-11-05T20:26:56.492+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for execution history cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\executionHistory)
2024-11-05T20:26:56.492+0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache executionHistory.bin (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\executionHistory\executionHistory.bin)
2024-11-05T20:26:56.492+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on execution history cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\executionHistory).
2024-11-05T20:26:56.492+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-rule (C:\Users\Administrator\.gradle\caches\8.9\md-rule)
2024-11-05T20:26:56.492+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-rule (C:\Users\Administrator\.gradle\caches\8.9\md-rule).
2024-11-05T20:26:56.493+0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
2024-11-05T20:26:56.493+0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 8, disk reads: 13 (avg: 0.0 secs, total: 0.0 secs)
2024-11-05T20:26:56.495+0800 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 18 resolution results binary files in 0.002 secs
2024-11-05T20:26:56.496+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run build'
2024-11-05T20:26:56.496+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run build' completed
2024-11-05T20:26:56.496+0800 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 9: released lock on worker lease
2024-11-05T20:26:56.501+0800 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles
2024-11-05T20:26:56.501+0800 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles
2024-11-05T20:26:56.501+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\fileHashes)
2024-11-05T20:26:56.501+0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileHashes.bin (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\fileHashes\fileHashes.bin)
2024-11-05T20:26:56.501+0800 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache resourceHashesCache.bin (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\fileHashes\resourceHashesCache.bin)
2024-11-05T20:26:56.501+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\fileHashes).
2024-11-05T20:26:56.501+0800 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for checksums cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\checksums)
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on checksums cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\checksums).
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheCleanupExecutor] VCS Checkout Cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\vcs-1) has last been fully cleaned up 1 hours ago
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheCleanupExecutor] Skipping cleanup for VCS Checkout Cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\vcs-1) as it is not yet due
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheCoordinator] Cache VCS Checkout Cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\vcs-1) was closed 0 times.
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheCoordinator] Cache VCS metadata (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\vcsMetadata) was closed 0 times.
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheCoordinator] Cache Compressed Files Expansion Cache (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\expanded) was closed 0 times.
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheCleanupExecutor] dependencies-accessors (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\dependencies-accessors) has last been fully cleaned up 1 hours ago
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheCleanupExecutor] Skipping cleanup for dependencies-accessors (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\dependencies-accessors) as it is not yet due
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.cache.internal.DefaultCacheCoordinator] Cache dependencies-accessors (C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle\8.9\dependencies-accessors) was closed 0 times.
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Deleting unused version-specific caches in C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle' started
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Deleting unused version-specific caches in C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle'
2024-11-05T20:26:56.502+0800 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Deleting unused version-specific caches in C:\Users\Administrator\code\rust\tauri-app\src-tauri\gen\android\.gradle' completed
2024-11-05T20:26:56.514+0800 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
2024-11-05T20:26:56.715+0800 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.CloseInput
2024-11-05T20:26:56.715+0800 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Received result Success[value=org.gradle.launcher.exec.BuildActionResult@53f48368] from daemon DaemonInfo{pid=20388, address=[213c1953-3a0c-41d8-9c81-cada5046c98b port:65090, addresses:[/127.0.0.1]], state=Idle, lastBusy=1730808540776, context=DefaultDaemonContext[uid=da1f2e0d-932e-4f71-9559-898a6f53229e,javaHome=C:\Java\jdk-17.0.2,javaVersion=17,daemonRegistryDir=C:\Users\Administrator\.gradle\daemon,pid=20388,idleTimeout=10800000,priority=NORMAL,applyInstrumentationAgent=true,nativeServicesMode=ENABLED,daemonOpts=--add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED,--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx2048m,-Dfile.encoding=UTF-8,-Duser.country=CN,-Duser.language=zh,-Duser.variant]} (build should be done).
2024-11-05T20:26:56.715+0800 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished
2024-11-05T20:26:56.715+0800 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: connection stop
2024-11-05T20:26:56.716+0800 [LIFECYCLE] [org.gradle.launcher.cli.DebugLoggerWarningAction]
#############################################################################
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Debug level logging will leak security sensitive information!
For more details, please refer to https://docs.gradle.org/8.9/userguide/logging.html#sec:debug_security in the Gradle documentation.
#############################################################################
Error [tauri_cli] Failed to assemble APK: command ["C:\\Users\\Administrator\\code\\rust\\tauri-app\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\Administrator\\code\\rust\\tauri-app\\src-tauri\\gen/android"] exited with code 1:
Describe the bug
can build app of
x86_64-pc-windows-msvc
.But cann't build android app.
Those code does not work when compiling Android in this project
by the way, no linker
aarch64-linux-android-clang
Reproduction
No response
Expected behavior
tauri.config.json
Full
tauri info
outputStack trace
No response
Additional context
I can compile successfully in debian gun env