Dutch-0 / RiderXamarinAndroid

Setup guide for Xamarin.Android with Rider on Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rider Xamarin.Android

This is a step-by-step guide on how to install Xamarin.Android on any Linux distro, using DistroBox.

QuickStart

  1. Install DistroBox and Podman/Docker using your package manager

  2. Create and enter an Arch Linux Box

distrobox create -n archriderbox -i archlinux:latest && distrobox enter archriderbox
  1. 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"
  1. 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
  1. Within Rider, download the Android SDK and set the correct paths (Android SDK+NDK and Java)

How to start Rider

Simply start Rider, from your local shell, with the following command:

distrobox enter archriderbox -- rider

Bonus (Gnome)

You can use alacarte to easily add Rider to your system menu in Gnome

image

Troubleshooting

Crashing while debugging

  1. fast deployment is turned off or log contains fpctx->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>

About

Setup guide for Xamarin.Android with Rider on Linux