In Android Studio I set arm64Debug to Active Variant and started the build.
But gradle runs tasks :app:rustBuildArm64Debug, :app:rustBuildArmDebug, :app:rustBuildX86, ...
I wanted target/aarch64-linux-android/debug/lib*.so in jniLibs/arm64-v8a, but finally it was overwritten by target/aarch64-linux-android/release/lib*.so.
In Android Studio I set arm64Debug to Active Variant and started the build.
But gradle runs tasks
:app:rustBuildArm64Debug
,:app:rustBuildArmDebug
,:app:rustBuildX86
, ...I wanted
target/aarch64-linux-android/debug/lib*.so
injniLibs/arm64-v8a
, but finally it was overwritten bytarget/aarch64-linux-android/release/lib*.so
.The problem seems to be caused by the following
https://github.com/BrainiumLLC/cargo-mobile/blob/master/templates/platforms/android-studio/buildSrc/src/main/kotlin/RustPlugin.kt.hbs#L35