Skip to content

Android Native Library (.so) in MAUI Class Library is not embedded in .DLL anymore #18459

Closed Answered by jurganson
jurganson asked this question in General
Discussion options

You must be logged in to vote

@nathenxbrewer Yeah kind of - I had to simply make sure to import the relevant .so files in my main solution as <AndroidNativeLibrary> following the ABI scheme, so:

- Android Solution
  - lib
    - arm64-v8a
      - mysofile.so
    - armeabi-v7a
      - mysofile.so
    - x86_64
      - mysofile.so

That did the trick for me. You might also be able to import the build AAR file as an AndroidLibrary instead, making sure to set Bind="False", with the prerequisite that you did the binding in the other project already and just want the library. But I have not tested that.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jurganson
Comment options

Answer selected by jurganson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants