hello_world_android_egui icon indicating copy to clipboard operation
hello_world_android_egui copied to clipboard

Success to compile APK file but failed to execute.

Open liangzid opened this issue 10 months ago • 1 comments

I use following commands in windows 11, powershell:

PS D:\dode\hello_world_android_egui> $env:ANDROID_HOME="C:\Users\22730\AppData\Local\Android\Sdk"; $env:NDK_HOME="C:\Users\22730\AppData\Local\Android\Sdk\ndk\25.2.9519653"; $env:JAVA_HOME="D:\Program Files\Android\Android Studio\jbr"; cargo apk build
Using package `hello_world_android_egui` in `D:\dode\hello_world_android_egui\Cargo.toml`
warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies
warning: unused variable: `window_id`
   --> src\lib.rs:120:21
    |
120 |                     window_id,
    |                     ^^^^^^^^^ help: try ignoring the field: `window_id: _`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `rdr`
   --> src\lib.rs:155:33
    |
155 |                 RedrawRequested(rdr) => {}
    |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_rdr`

warning: variable does not need to be mutable
  --> src\lib.rs:83:9
   |
83 |     let mut instance = wgpu::Instance::new(instance_descriptor);
   |         ----^^^^^^^^
   |         |
   |         help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` on by default

warning: `hello_world_android_egui` (lib) generated 3 warnings (run `cargo fix --lib -p hello_world_android_egui` to apply 3 suggestions)
    Finished dev [unoptimized + debuginfo] target(s) in 0.85s
 'lib/arm64-v8a/libhello_world_android_egui.so'...
Verifying alignment of D:\dode\hello_world_android_egui\target\debug\apk\hello_world_android_egui.apk (4)...
      49 AndroidManifest.xml (OK - compressed)
     896 lib/arm64-v8a/libhello_world_android_egui.so (OK)
Verification succesful
Signing `D:\dode\hello_world_android_egui\target\debug\apk\hello_world_android_egui.apk` with keystore `C:\Users\22730\.android\debug.keystore`

and I can find the apk file in ./target/debug/apk, while it cannot be executed. Strange.

liangzid avatar Aug 28 '23 23:08 liangzid