This is a step-by-step guide on how to install Xamarin.Android on any Linux distro, using DistroBox.
-
Install
DistroBox
andPodman
/Docker
using your package manager -
Create and enter an Arch Linux Box
distrobox create -n archriderbox -i archlinux:latest && distrobox enter archriderbox
- Add Chaotic AUR
sudo -- sh -c "sudo pacman-key --init && sudo pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com && sudo pacman-key --lsign-key FBA220DFC880C036 && sudo pacman --noconfirm -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' && { sudo echo '[chaotic-aur]' ; sudo echo 'Include = /etc/pacman.d/chaotic-mirrorlist'; } >>/etc/pacman.conf"
- Install packages
sudo pacman -Sy chaotic-aur/yay community/mono-msbuild libxtst chaotic-aur/android-studio fakeroot extra/jdk11-openjdk community/dotnet-sdk-6.0 chaotic-aur/rider --noconfirm && yay -S xamarin-android --noconfirm
- Within Rider, download the Android SDK and set the correct paths (Android SDK+NDK and Java)
Simply start Rider, from your local shell, with the following command:
distrobox enter archriderbox -- rider
You can use alacarte to easily add Rider to your system menu in Gnome
fast deployment
is turned off or log containsfpctx->head.magic == FPSIMD_MAGIC' not met
1.1 Add or replace the following line in your Android.csproj file:
<AndroidSupportedAbis>x86;x86_64;armeabi-v7a;arm64-v8a</AndroidSupportedAbis>