Closed newfuture33 closed 2 years ago
same problem os:win10 android studio: 2021.2.1 patch2 rustc:1.61 android sdk build-tools:33
it seems python problem??? compiled success by change rustc to nightly on ubuntu, but still failed on windows
I maybe solve it,it seems python3 command not found .
cargo {
module = "src/main/rust/shadowsocks-rust"
libname = "sslocal"
//targets = listOf("arm", "arm64", "x86", "x86_64")
targets = listOf("arm64")
profile = findProperty("CARGO_PROFILE")?.toString() ?: currentFlavor
extraCargoBuildArguments = listOf("--bin", libname!!)
featureSpec.noDefaultBut(arrayOf(
"stream-cipher",
"aead-cipher-extra",
"logging",
"local-flow-stat",
"local-dns",
"armv8",
"neon",
"aead-cipher-2022",
))
exec = { spec, toolchain ->
spec.environment("RUST_ANDROID_GRADLE_PYTHON_COMMAND", "python")
spec.environment("RUST_ANDROID_GRADLE_LINKER_WRAPPER_PY", "$projectDir/$module/../linker-wrapper.py")
spec.environment("RUST_ANDROID_GRADLE_TARGET", "target/${toolchain.target}/$profile/lib$libname.so")
}
}
“python3” modify to “python”,no this error, you can try.
When build code, faced this issue. I have found this file in position. File exist, but get 9009 error.