aarnott / avalonia-withnativedependency Goto Github PK
View Code? Open in Web Editor NEWA sample of a minimal Avalonia app with a native dependency.
A sample of a minimal Avalonia app with a native dependency.
On the line that first requires the native dependency to be loaded, an exception is thrown:
System.DllNotFoundException
Message=nerdbank_zcash_rust
0xFFFFFFFFFFFFFFFF in Android.Runtime.RuntimeNativeMethods.monodroid_debugger_unhandled_exception C#
0x1A in Android.Runtime.JNINativeWrapper._unhandled_exception at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:13,5 C#
0x1E in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:126,26 C#
0x1A in NativeMethods.get_orchard_fvk_bytes_from_sk_bytes C#
0x16 in NativeMethods.TryDeriveOrchardFullViewingKeyFromSpendingKey C#
0x14 in Nerdbank.Zcash.Orchard.SpendingKey.CreateFullViewingKey C#
0x1B in Nerdbank.Zcash.Orchard.SpendingKey..ctor C#
0x55 in Nerdbank.Zcash.Zip32HDWallet.Orchard.Create C#
0x34 in Nerdbank.Zcash.Zip32HDWallet..ctor C#
0x17 in Nerdbank.Zcash.Zip32HDWallet..ctor C#
> 0x13 in AvaloniaApplication1.ViewModels.MainViewModel..ctor at c:\temp\AvaloniaApplication1\AvaloniaApplication1\ViewModels\MainViewModel.cs:12,3 C#
0x4D in AvaloniaApplication1.App.OnFrameworkInitializationCompleted at c:\temp\AvaloniaApplication1\AvaloniaApplication1\App.axaml.cs:28,13 C#
0xC1 in Avalonia.AppBuilder.SetupUnsafe C#
0x65 in Avalonia.AppBuilder.Setup C#
0x8 in Avalonia.AppBuilder.SetupWithLifetime C#
0x13 in Avalonia.Android.AvaloniaMainActivity<AvaloniaApplication1.App>.InitializeApp C#
0x1 in Avalonia.Android.AvaloniaMainActivity<AvaloniaApplication1.App>.OnCreate C#
0x11 in Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Android.App.Activity.cs:3082,4 C#
0x9 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:125,5 C#
This, despite the fact that the dll does in fact ship with the app alongside the other binaries:
Further, I've confirmed with the msbuild binlog file that the dll that's placed there is the correct android-x64 build of the native binary, which given this is running in an x64 emulator seems to be the right one to 'ship' with the app for the emulator.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.