> tauri "android" "build" "--" "--apk" "--debug"
Finished `release` profile [optimized] target(s) in 0.37s
Info symlinking lib "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\target\\aarch64-linux-android\\release\\libxyktlmcpoints_lib.so" in jniLibs dir "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a"
Info "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\target\\aarch64-linux-android\\release\\libxyktlmcpoints_lib.so" requires shared lib "libandroid.so"
Info "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\target\\aarch64-linux-android\\release\\libxyktlmcpoints_lib.so" requires shared lib "libdl.so"
Info "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\target\\aarch64-linux-android\\release\\libxyktlmcpoints_lib.so" requires shared lib "liblog.so"
Info "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\target\\aarch64-linux-android\\release\\libxyktlmcpoints_lib.so" requires shared lib "libm.so"
Info "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\target\\aarch64-linux-android\\release\\libxyktlmcpoints_lib.so" requires shared lib "libc.so"
Info symlink at "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\gen/android\\app/src/main/jniLibs/arm64-v8a\\libxyktlmcpoints_lib.so" points to "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\target\\aarch64-linux-android\\release\\libxyktlmcpoints_lib.so"
Kotlin does not yet support 22 JDK target, falling back to Kotlin JVM_21 JVM target
Kotlin does not yet support 22 JDK target, falling back to Kotlin JVM_21 JVM target
Java compiler version 22 has deprecated support for compiling with source/target version 8.
Try one of the following options:
1. [Recommended] Use Java toolchain with a lower language version
2. Set a higher source/target version
3. Use a lower version of the JDK running the build (if you're not using Java toolchain)
For more details on how to configure these settings, see https://developer.android.com/build/jdks.
To suppress this warning, set android.javaCompile.suppressSourceTargetDeprecationWarning=true in gradle.properties.
璀﹀憡: [options] 婧愬€?8 宸茶繃鏃讹紝灏嗗湪鏈潵鍙戣鐗堜腑鍒犻櫎
璀﹀憡: [options] 鐩爣鍊?8 宸茶繃鏃讹紝灏嗗湪鏈潵鍙戣鐗堜腑鍒犻櫎
璀﹀憡: [options] 瑕侀殣钘忔湁鍏冲凡杩囨椂閫夐」鐨勮鍛? 璇蜂娇鐢?-Xlint:-options銆?
<3 涓鍛?[0K--> 34% EXECUTING [3s]
> xyktlmcpoints@0.1.0 tauri C:\Users\ROG\TAURI\xyktlmc.points
> tauri "android" "android-studio-script" "--release" "--target" "aarch64"
<=========----> 72% EXECUTING [3s]
> :app:lintVitalAnalyzeUniversalRelease error: unexpected argument '--apk' found
Usage: cargo.exe build --package [<SPEC>] --manifest-path <PATH> --target [<TRIPLE>] --features <FEATURES>
For more information, try '--help'.
`Failed to run `cargo build`: command ["cargo", "build", "--package", "xyktlmcpoints", "--manifest-path", "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/custom-protocol", "--apk", "--debug", "--lib", "--release"] exited with code 1
Error `Failed to run `cargo build`: command ["cargo", "build", "--package", "xyktlmcpoints", "--manifest-path", "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/custom-protocol", "--apk", "--debug", "--lib", "--release"] exited with code 1
鈥塃LIFECYCLE鈥?Command failed with exit code 1.
<
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:rustBuildArm64Release'.
> A problem occurred starting process 'command 'pnpm.cmd''
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 26s
Failed to assemble APK: command ["C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\gen/android"] exited with code 1: command ["C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\gen/android"] exited with code 1
Error Failed to assemble APK: command ["C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\gen/android"] exited with code 1: command ["C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\gen/android\\gradlew.bat", "--project-dir", "C:\\Users\\ROG\\TAURI\\xyktlmc.points\\src-tauri\\gen/android"] exited with code 1
ELIFECYCLE Command failed with exit code 1
That’s not really Gradle question actually.
Your Gradle build is calling pnpm
with cargo build ...
giving it the argument --apk
which it does not understand and thus fail execution.