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 assemble APK #12029

Closed
johannesschaffer opened this issue Dec 22, 2024 · 2 comments
Closed

[bug] Failed to assemble APK #12029

johannesschaffer opened this issue Dec 22, 2024 · 2 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@johannesschaffer
Copy link

johannesschaffer commented Dec 22, 2024

Describe the bug

When I'm running npm run tauri android dev it fails with: Failed to assemble APK: command ["C:\\Users\\johan\\Programming\\tests\\chats-tauri\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\johan\\Programming\\tests\\chats-tauri\\src-tauri\\gen/android"] exited with code 1

Reproduction

I'm just using the vite + typescript template

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.26100 x86_64 (X64)
    ✔ WebView2: 131.0.2903.112
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ rustc: 1.83.0 (90b35a623 2024-11-26)
    ✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 22.11.0
    - npm: 10.9.0

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

[-] Plugins
    - tauri-plugin-notification 🦀: 2.2.0
    - @tauri-apps/plugin-notification : 2.2.0

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

Stack trace

No response

Additional context

No response

@johannesschaffer johannesschaffer added status: needs triage This issue needs to triage, applied to new issues type: bug labels Dec 22, 2024
@johannesschaffer
Copy link
Author

Same problem on macOS. Installing Java 17 solved it

@FabianLars
Copy link
Member

Closing as solved then? If it's not fixed on Windows yet, interpret this as closed as a duplicate of #11502

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

2 participants