Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] failed to build android apk #7209

Closed
qt06 opened this issue Jun 15, 2023 · 0 comments
Closed

[bug] failed to build android apk #7209

qt06 opened this issue Jun 15, 2023 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@qt06
Copy link

qt06 commented Jun 15, 2023

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

@qt06 qt06 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

1 participant