Skip to content

Android build fails because of OpenSSL dependency #28

@jgonera

Description

@jgonera

From what I gathered, using OpenSSL for Android apps is tricky (currently my Android builds fail after adding tauri-plugin-aptabase) and what is recommended is to use rustls instead like this:

reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }

This is based on discussion in:
https://github.com/orgs/tauri-apps/discussions/11020

Related failure in my build logs:

  Could not find directory of OpenSSL installation, and this `-sys` crate cannot
  proceed without this knowledge. If OpenSSL is installed and this crate had
  trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the
  compilation process.

  Make sure you also have the development packages of openssl installed.
  For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.

  If you're in a situation where you think the directory *should* be found
  automatically, please open a bug at https://github.com/rust-openssl/rust-openssl
  and include information about your system as well as this message.

  $HOST = aarch64-apple-darwin
  $TARGET = aarch64-linux-android
  openssl-sys = 0.9.111

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions