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

open in android studio failed #327

Open
zhangchaoza opened this issue May 13, 2024 · 0 comments
Open

open in android studio failed #327

zhangchaoza opened this issue May 13, 2024 · 0 comments

Comments

@zhangchaoza
Copy link

Describe the bug
I got an error with cargo tauri android open.

    Error An error occured while calling OS API: 系统找不到指定的文件。 (os error -2147024894): 系统找不到指定的文件。 (os error -2147024894)

Steps To Reproduce

  1. create a tauri app
  2. run cargo tauri android open

Expected behavior
Open project in Android Studio

Platform and Versions (please complete the following information):
Host OS: windows11
Target OS: android (aarch64-linux-android)
Rustc: 1.78.0 (9b00956e5 2024-04-29)
Ouput of cargo mobile doctor:

[✔] cargo-mobile v0.11.1
    • Contains commits up to ""
    • Installed at "C:\\Users\\zhangchao\\scoop\\persist\\rustup-msvc\\.cargo\\.cargo-mobile2"
    • Windows 11 v10.0
    • rustc v1.78.0 (9b00956e5 2024-4-29)

[✔] Android developer tools
    • SDK v26.1.1 installed at "C:\\Users\\zhangchao\\AppData\\Local\\Android\\Sdk"
    • NDK v27.0.11718014-beta1 installed at "C:\\Users\\zhangchao\\AppData\\Local\\Android\\SDK\\ndk\
      \27.0.11718014"

[✔] Connected devices
    • No connected devices were found

Additional context
I check the code and found the 'open' command use studio.cmd to run android studio, but I did not find it in android studio's bin directory (2023.3.1.18). I just found a bat file named 'studio.bat' in android studio's bin directory. So, I just copied and rename studio.bat to studio.cmd, the open command worked.

Were some necessary installation items missing?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant