dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.98k stars 1.71k forks source link

MAUI app on Android can't load a native Android lib (.so) #23808

Open if-mindesk opened 1 month ago

if-mindesk commented 1 month ago

Description

I built a sample MAUI app that needs to load Rhino CAD files using the nuget package Rhino3dm (https://www.nuget.org/packages/Rhino3dm/). This package uses a native .so lib that the MAUI app on Android can't find (DllNotFoundException for 'librhino3dm_native'). I don't know if this issue is caused by MAUI, by the nuget package or something else I also opened an issue for Rhino3dm https://github.com/mcneel/rhino3dm/issues/633

Steps to Reproduce

Copy the file SampleFileRhino3dm/CubeTest200mm.3dm on the Android device Start the app Press the 'Pick Rhino 3dm file' button and select the provided file

Link to public reproduction project repository

https://github.com/if-mindesk/TestRhino3dm.git

Version with bug

8.0.70 SR7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android

Did you find any workaround?

No

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Zhanglirong-Winnie commented 1 month ago

This issue has been verified using Visual Studio 17.11.0 Preview 5.0(8.0.70). Can repro on Android device platform.