Skip to content

[bug] failed to build android apk #7209

@qt06

Description

@qt06

Describe the bug

cargo, rust,npm,tauri-cli are all latest.
use npx tauri android build to build.
the wrong message is below:
w: d:\pf\rust.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\tauri-2.0.0-alpha.9\mobile\android\src\m
ain\java\app\tauri\PermissionHelper.kt: (113, 30): Unchecked cast: Array to Array<String?>
w: d:\pf\rust.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\tauri-2.0.0-alpha.9\mobile\android\src\m
ain\java\app\tauri\plugin\PluginMethodData.kt: (11, 23): Parameter 'methodDecorator' is never used
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:rustBuildArm64Release'.

A problem occurred starting process 'command 'npx-cli.cmd''

Reproduction

No response

Expected behavior

No response

Platform and versions

Microsoft Windows [版本 10.0.19045.3086]
(c) Microsoft Corporation。保留所有权利。

D:\workspace\tauri-apps\na>npx tauri info

[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 114.0.1823.43
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.72.0-nightly (7820972f8 2023-06-10)
    ✔ Cargo: 1.72.0-nightly (49b6d9e17 2023-06-09)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: nightly-x86_64-pc-windows-msvc (default)
    - node: 20.0.0
    - pnpm: 8.6.2
    - yarn: 1.22.19
    - npm: 9.7.1

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.9
    - tauri-build [RUST]: 2.0.0-alpha.5
    - wry [RUST]: 0.28.3
    - tao [RUST]: 0.19.1
    - @tauri-apps/api [NPM]: 2.0.0-alpha.4
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.9

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

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions