/maui-skills:xamarin-android-migrationfrom maui-skills
Migrates Xamarin.Android native apps to .NET for Android. Covers SDK-style project conversion, MSBuild properties, AndroidManifest.xml updates, binding libraries, and Xamarin.Essentials compatibility.
Ships in maui-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For SDK-style project templates, MSBuild property tables, ABI conversion, namespace mappings, and CLI commands, see references/android-migration-api.md.
⚠️ Field-tested advice: Android migration is significantly harder than iOS. Expect more UI bugs, OEM-specific rendering differences, and issues not reproducible on emulators. Test on physical devices.
dotnet new android)references/android-migration-api.md)<uses-sdk>, use csproj propertiesResource.designer.cs (regenerated automatically)<UseMauiEssentials>true</UseMauiEssentials>bin//obj/, build, test on physical devicesStrategy: Create a new project and copy code into it — don't edit the existing project file in place.
<uses-sdk> from AndroidManifest.xml<!-- ❌ Xamarin-style — causes build warnings/errors -->
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33" />
<!-- ✅ Use MSBuild properties instead -->
<TargetFramework>net8.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
Resource.designer.csThis file is auto-generated. Leftover copies from Xamarin cause duplicate symbol errors. Delete it — it will be regenerated.
.dll.config or .exe.config Support.dll.config and <dllmap> are not supported in .NET Core. If your app uses System.Configuration.ConfigurationManager, migrate to appsettings.json or platform preferences.
// ❌ Forgetting this → permissions silently fail
// ✅ Required in EVERY Activity that uses Essentials
public override void OnRequestPermissionsResult(
int requestCode, string[] permissions, Permission[] grantResults)
{
Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);
base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}
AndroidManifest.xml is now in the project root (not Properties/). The SDK-style project finds it there by default.
| Pitfall | Impact | Mitigation |
|---|---|---|
| OEM rendering differences | UI bugs not visible on emulators | Test on physical devices from multiple vendors |
| Shadow rendering varies by OEM/API level | Inconsistent shadow appearance | Implement shadows in platform-specific handler code |
| Android Wear references | Not supported in .NET for Android | Remove Wear project references |
MAndroidI18n removed | Encoding errors at runtime | Replace with System.Text.Encoding.CodePages NuGet |
AotAssemblies deprecated | Build warnings | Use RunAOTCompilation instead |
jar2xml not supported | Binding library build failures | Use default class-parse parser |
DebugType=full not supported | Build errors | Use default portable |
Android is unique: packages targeting monoandroid still work on .NET for Android. No recompilation needed for most Android-specific packages. This is NOT true for iOS/Mac.
If no compatible version exists:
If your migrated app will also adopt .NET MAUI controls (e.g., via UseMaui), check the maui-current-apis skill for deprecated MAUI APIs to avoid (ListView, Frame, Device.*, etc.).
dotnet new android)TargetFramework to net8.0-android (or later)SupportedOSPlatformVersion for minimum SDKAndroidSupportedAbis → RuntimeIdentifiers<uses-sdk> from AndroidManifest.xmlResource.designer.cs, bin/, obj/UseMauiEssentials + Platform.Init() if using EssentialsOnRequestPermissionsResult in every ActivityMAndroidI18n with System.Text.Encoding.CodePagesRunAOTCompilation, not AotAssemblies)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub davidortinau/maui-skills --plugin maui-skills41 skills in this plugin
/maui-accessibilityGuide for making .NET MAUI apps accessible — screen reader support via SemanticProperties, heading levels, AutomationProperties visibility control, programmatic focus and announcements, and platform-specific gotchas for TalkBack, VoiceOver, and Narrator. USE FOR: "add accessibility", "screen reader support", "SemanticProperties", "AutomationProperties", "TalkBack", "VoiceOver", "Narrator", "accessible MAUI", "heading levels", "semantic description", "announce to screen reader", "accessibility audit". DO NOT USE FOR: general UI layout (use maui-collectionview or maui-shell-navigation), animations (use maui-animations), or gestures (use maui-gestures).
/maui-animations.NET MAUI view animations, custom animations, easing functions, rotation, scale, translation, and fade effects. USE FOR: "animate view", "fade in", "fade out", "slide animation", "scale animation", "rotate view", "translate view", "easing function", "custom animation", "animation chaining", "ViewExtensions animation". DO NOT USE FOR: gesture recognition (use maui-gestures), custom drawing (use maui-graphics-drawing), or static layout changes (use maui-data-binding).
/maui-app-icons-splash.NET MAUI app icon configuration, splash screen setup, SVG to PNG conversion at build time, composed/adaptive icons, and platform-specific icon and splash screen requirements for Android, iOS, Mac Catalyst, and Windows. USE FOR: "app icon", "splash screen", "MauiIcon", "MauiSplashScreen", "adaptive icon", "change app icon", "launch screen", "SVG icon", "foreground tint", "icon resize". DO NOT USE FOR: in-app images or image loading (use maui-performance), theming or colors (use maui-theming), or custom drawing (use maui-graphics-drawing).
Other plugins' skills for the same job