简体   繁体   中英

How to find out which dependency is missing after DllNotFoundException?

I want to write a small.Net MAUI application which makes use of a C# SDK NuGet Package (implementing Hyperledger Anoncreds ). When running the App on Android (emulator or device) most of the SDK method calls work, but certain calls still throw a DllNotFoundException without any indication of which Dll is actually missing.

After I did some reading on the SDK, I was able to add some .so dependencies to the MAUI project, but apparently there are still some missing.

I already tried reading through the SDK source code and some of the Rust code it wraps to get hunch of what could possibly be missing. But even wading through the cargo.toml files only show me the crates and not any actually libraries.

Android tools like "APK Analyzer" provide a lot of usefull information, but no dependency overview and the "Dependency Walker" tool only analyzes Windows-built binaries which differs from the actual Android environment.

How do I find the missing dependency indicated by the Exception? Is there a tool like "Dependency Walker" for Android APKs?

Edit: Fixed some typos and added more Info.

After a quick google search for an equivalent of ldd on Android I found this: ndk-depends which should be shipped with Android NDK. I would try and use that on the.so files that you use and include with your project.

EDIT: Here is a link to the manual: ndk-depends

Hope it helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM