Skip to content

System.DllNotFoundException when running Xamarin.Android application #463

@sinyeekw

Description

@sinyeekw

Hello, I am trying to build an android app that uses the SEAL library. I am using Visual Studio 2019 on MacOS to build an Xamarin project which is recommended in the READMe.

I have installed the seal package in both the main project and the android project by clicking Project > Manage NuGET Packages > Microsoft.Research.SEALNet(4.0.0). When I build the project, no errors are thrown.

Here's my android build configuration:
Screenshot 2022-03-21 at 2 52 59 PM
Screenshot 2022-03-21 at 2 53 28 PM
Screenshot 2022-03-21 at 2 53 47 PM

However, when I run the app on an android stimulator (Nexus_5x_API_24, x86 processor), an error is thrown at the following line:

"EncryptionParameters parms = new EncryptionParameters(SchemeType.CKKS); "

Error thrown:
"System.DllNotFoundException: sealc assembly: type: member: (null)

Here is the project for reference: https://github.com/sinyeekw/homoenc

Any help is appreciated, thank you! :)

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