Run a MAUI project on Android devices of different architectures

Recently Visual Studio gave the following error when I tried to run the MAUI project on a Samsung T580 tablet 

Mono.AndroidTools.IncompatibleCpuAbiExceptiopn: The package does not support the CPU architecture of this device

After many attempts, the problem was solved by adding the following line to the project file that contains the mobile platforms.

<RuntimeIdentifiers Condition="$(TargetFramework.Contains('-android'))">android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers>


Yorum ekle