Skip to content

Unable to load libtor.so #36

Description

@nns52k

Does anyone encounter the same problem unable to load libtor.so, when flutter run?

Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libtor.so': dlopen failed: cannot locate symbol "__extenddftf2" referenced by "/data/app/~~rTNkc4SQHo-7fdh2bp_IVA==/com.example.flutter_project1-DWd49BnV_9C021gZ0N8MVQ==/lib/x86_64/libtor.so"...

I was able to run the official example ~/.pub-cache/hosted/pub.dev/tor-0.0.3/example/ that came with this Flutter package tor without any problem, but running the same example in my new PC, that has newer versions of everything, I got the error mentioned.

These are my tools that built the Android app that has the runtime error mentioned:

  • Flutter version: 3.19.6
  • Dart version: 3.3.4
  • Rust & Cargo version: 1.77.2
  • Cargo NDK version: 3.5.4
  • Linux distro: MX-23.2_x64 Libretto January 21, 2024

By the way, the instruction in GitHub - Foundation-Devices/tor: Tor plugin for Flutter is kind of confusing.

  1. Is pulling Cargokit into our Flutter project still a prerequsite, since these is ~/.pub-cache/hosted/pub.dev/tor-0.0.3/cargokit that came with Flutter package tor-0.0.3?
  2. Will it be more clear if we change "To (re)generate Dart bindings run just generate" to "To (re)generate Dart bindings, run just generate"?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions