| name | setup-sample |
| description | Help users set up and run the AndroidSample project. Use when asked to run the sample, set up the project, or get started with the Nutrient .NET for Android SDK. |
Set Up and Run the Android Sample Project
Guides the user through setting up and running the AndroidSample project from this repository.
Important Rules
- Always check prerequisites first before attempting to build.
- Prefer the NuGet approach unless the user explicitly wants to build from source.
- Stop on errors and help the user diagnose before proceeding.
- Do not modify the sample project with workarounds. If something fails, diagnose the root cause.
Workflow
Step 1: Check Prerequisites
Verify the development environment is ready:
dotnet --version
dotnet workload list | grep android
java -version
Required:
- .NET SDK 9.0+ (with .NET for Android workload)
- Microsoft Mobile OpenJDK 11.0+
- Android SDK with API level 23+
If the Android workload is missing:
dotnet workload install android
If the user wants to run on a device/emulator, verify ADB is available:
adb devices
Step 2: Choose Integration Path
Ask the user which approach they prefer:
Option A: NuGet Package (Recommended) - Easiest setup, uses pre-built packages from nuget.org.
Option B: Build from Source (Advanced) - Builds the binding project locally, then builds the sample against it.