You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
create a tauri app
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.
The text was updated successfully, but these errors were encountered:
Describe the bug
I got an error with
cargo tauri android open
.Steps To Reproduce
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
: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.
The text was updated successfully, but these errors were encountered: