I wanted to try tauri development for a project, for which I followed the steps in getting started on tauri page. After setting up the android environment and created a project from template using npm create tauri-app@latest.
I ran npm run tauri android init followed by npm run tauri android dev
that resulted in the following error
Compiling wry v0.46.3
Compiling tauri v2.0.6
Compiling tauri-plugin-shell v2.0.2
Compiling asdfasdf v0.1.0 (/home/xm/Documents/Experiments/React_Applications/asdfasdf/src-tauri)
Compiling tauri-runtime-wry v2.1.2
error: custom attribute panicked
--> src/lib.rs:7:20
|
7 | #[cfg_attr(mobile, tauri::mobile_entry_point)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: `""` is not a valid identifier
error: could not compile `asdfasdf` (lib) due to 1 previous error
`Failed to run `cargo build`: command ["cargo", "build", "--package", "asdfasdf", "--manifest-path", "/home/xm/Documents/Experiments/React_Applications/asdfasdf/src-tauri/Cargo.toml", "--target
", "aarch64-linux-android", "--lib"] exited with code 101
Error `Failed to run `cargo build`: command ["cargo", "build", "--package", "asdfasdf", "--manifest-path", "/home/xm/Documents/Experiments/React_Applications/asdfasdf/src-tauri/Cargo.toml",
"--target", "aarch64-linux-android", "--lib"] exited with code 101
Here I just created a new projected without changing the source code of template wanted to test it on android device. Note this works if i run npm tauri dev without issues
You should be using invalid unique identifier, I just run into same issue couple days back.. Unique identifier should no contain special characters like - etc.. it should be like com.example.app
Describe the bug
I wanted to try tauri development for a project, for which I followed the steps in getting started on tauri page. After setting up the android environment and created a project from template using
npm create tauri-app@latest
.I ran
npm run tauri android init
followed bynpm run tauri android dev
that resulted in the following error
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
Additional context
Here I just created a new projected without changing the source code of template wanted to test it on android device. Note this works if i run
npm tauri dev
without issues