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] Android 'getting started' guide steps fail with no error message under OSX 15 #12010

Open
thurn opened this issue Dec 20, 2024 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@thurn
Copy link

thurn commented Dec 20, 2024

Describe the bug

Hello, I decided to try out tauri today, but I have not been able to make the android 'getting started' tauri guide work. The android development mode server fails to start with no error output describing what is wrong beyond "failed to assemble APK".

Reproduction

$ cargo create-tauri-app
(pick typescript/javascript; npm; vanilla; typescript)

$ cd tauri-app

$ npm install

$ npm run tauri android init

[email protected] tauri
tauri android init

Generating Android Studio project...
Info "/Users/dthurn/Desktop/tmp/tauri-app/src-tauri" relative to "/Users/dthurn/Desktop/tmp/tauri-app/src-tauri/gen/android/tauri_app" is "../../../"
victory: Project generated successfully!
Make cool apps! 🌻 🐕 🎉

$ npm run tauri android dev

...
Execution failed for task ':app:rustBuildArm64Debug'.

A problem occurred starting process 'command 'npm''
Failed to assemble APK: command [...]

Full command output here: https://gist.github.com/thurn/2ad2dd7d9a0d1783d1c7b5a00e1962c2

$ echo $JAVA_HOME
/Users/dthurn/Applications/Android Studio.app/Contents/jbr/Contents/Home

$ echo $ANDROID_HOME
/Users/dthurn/Library/Android/sdk

$echo $NDK_HOME
/Users/dthurn/Library/Android/sdk/ndk/28.0.12674087

Expected behavior

'npm run tauri android dev' should clearly describe why it failed to start.

Full tauri info output

> [email protected] tauri
> tauri info


[✔] Environment
    - OS: Mac OS 15.1.1 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ 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-aarch64-apple-darwin (default)
    - node: 23.4.0
    - npm: 11.0.0

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

[-] Plugins

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

Stack trace

No response

Additional context

No response

@thurn thurn added status: needs triage This issue needs to triage, applied to new issues type: bug labels Dec 20, 2024
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