Open gkarabin opened 1 year ago
See a discord discussion here, if you are so inclined: https://discord.com/channels/732297728826277939/732297837953679412/1055902191015165992
Here is the binlog generated from dotnet build -t:Run -f net6.0-android -bl -p:_FastDeploymentDiagnosticLogging=true
msbuild.binlog.zip
Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
VS 2022 17.4.3
Description
The .net 6 template app will crash if you modify it to limit RID support to android-arm and android-x64 when deploying to an android-arm64 device. I have an app that has 32-bit ARM .so files that I reference, but does not have 64-bit versions of the same files for ARM. I do have 32-bit and 64-bit versions for Intel.
For legacy Xamarin Android I could specify
<AndroidSupportedAbis>armeabi-v7a;x86_64</AndroidSupportedAbis>
. For net6.0, specifying<RuntimeIdentifiers>android-arm;android-x64</RuntimeIdentifiers>
results in an app that crashes with:Steps to Reproduce
From a command prompt with VS 2022 17.4.3:
<RuntimeIdentifiers>android-arm;android-x64</RuntimeIdentifiers>
I expect the app to launch and display "Hello Android!". Instead, the app launches to a white screen with no text.
Did you find any workaround?
Uninstalling the app from the Android device, then modifying the app to target .net7.0-android works as expected when building and running for net7.0-android.
It is a costly workaround - my app requires quite a bit of work to update to .net7.0 due to Android SDK requirement changes for MAUI.
Relevant log output