Как заставить Android (эмулятор) загружать собственную зависимость, которая поставляется с приложением C # (Avalonia)?Android

Форум для тех, кто программирует под Android
Anonymous
Как заставить Android (эмулятор) загружать собственную зависимость, которая поставляется с приложением C # (Avalonia)?

Сообщение Anonymous »


Given a new C# Avalonia solution in Visual Studio, with a PackageReference that brings in a native dependency, how can the Android app be made to find and load that native dependency? The referenced nuget package utilizes the runtimes\android-x64\native folder for its native lib*.so library, and msbuild seems to recognize it and copy it into the .apk folder that presumably gets distributed to the Android emulator. So why then do I get a runtime exception saying the library cannot be found?

Minimal repro with issue describing the problem here:  https://github.com/AArnott/Avalonia-Wit ... y/issues/1


Источник: https://stackoverflow.com/questions/781 ... ith-a-c-sh

Вернуться в «Android»