uniffi-rs
uniffi-rs copied to clipboard
How to run android unit test locally ?
I am importing an Interface from Rust to Kotlin via udl and I want to test it in the unit test of android studio. When i use my interface in my code or in instrumented test it works but when I try to use it in unit test (locally) I have this error :
Unable to load library 'uniffi_rust':
...
Native library (win32-x86-64/uniffi_rust.dll) not found in resource path
I think it may be come from my local config, even if I have already installed the windows targets with rustup.
┆Issue is synchronized with this Jira Task ┆Issue Number: UNIFFI-176
I'm not sure we can really help you here without knowing exactly what you are trying to test nor what your android configuration is. Stand-alone tests in android-studio also isn't something we are that familiar with in practice - have you tried running Android tests via the same mechanism we do in this repo?