Flutter Rust Bridge - Build Failed with arm-linux-androideabi-ranlib not found (NDK r21e) #1158
-
I am experiencing a build issue while using the
I am using:
I can confirm that arm-linux-androideabi-ranlib exists at the following path:
Here is my Cargo.toml: [lib]
...
crate-type = ["lib", "staticlib", "cdylib"]
[dependencies]
flutter_rust_bridge = { version = "=1.67.0", features = ["uuid"] }
openssl = { version = "0.10", features = ["vendored"] }
... And this is the relevant part of my build.gradle: [
new Tuple2('Debug', ''),
new Tuple2('Profile', '--release'),
new Tuple2('Release', '--release')
].each {
def taskPostfix = it.first
def profileMode = it.second
tasks.whenTaskAdded { task ->
if (task.name == "javaPreCompile$taskPostfix") {
task.dependsOn "cargoBuild$taskPostfix"
}
}
tasks.register("cargoBuild$taskPostfix", Exec) {
commandLine 'sh', '-c', """cd ../../rust/my_lib && \
ANDROID_NDK_HOME="$ANDROID_NDK" cargo ndk \
-t armeabi-v7a -t arm64-v8a -t x86 -t x86_64 \
-o ../android/app/src/main/jniLibs build $profileMode"""
}
} I am not sure if this is the right place to post this issue, as I am hesitating between the flutter_rust_bridge and the OpenSSL project, so my apologies if I'm not in the right place. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hmm IMHO it may just be a problem with openssl+rust+android, instead of the bridge? |
Beta Was this translation helpful? Give feedback.
@fzyzcjy My bad, in fact, you're right, it is coming from an upgrade of
openssl-src
, the new version is broken for android alexcrichton/openssl-src-rs#188.