- Home
- Skills
- Mobile Development
- expo android build doctor
expo android build doctor
Diagnose and fix Expo/React Native Android build failures, Gradle errors, and environment mismatches.
$5
Works with the AI Agents you already use
expo android build doctor
Example session with this skill installed
My Expo Android build is failing with a 'manifest merger failed' error after I added a new notification library. Here is the log output.
- Read your context and instructions
- Compiled the expo android build
The build failed because two libraries are competing for the android:allowBackup attribute in the merged AndroidManifest.xml.
Root cause
Conflicting android:allowBackup values between the core app manifest and the newly added notification library.
Evidence
- Error:
Attribute application@allowBackup value=(false) from [com.github.library:notification-sdk:1.2.0] AndroidManifest.xml:12:9-35 - Conflict:
is also present at [project:app] AndroidManifest.xml:15:9-32 value=(true) - Task:
:app:processDebugMainManifest
Fix
- Open
android/app/src/main/AndroidManifest.xml. - Add the
toolsnamespace to the<manifest>tag:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
- Update the
<application>tag to resolve the conflict:
<application
android:allowBackup="true"
tools:replace="android:allowBackup">
Verify
Run the build command again to confirm the manifest merger completes:
npx expo run:android
If it still fails
- Provide the output of
./gradlew :app:processDebugMainManifest --stacktraceto see the full merger report. - Check if other attributes like
android:labelorandroid:supportsRtlare also conflicting.
Next steps
- Apply the
tools:replaceattribute to the Manifest. - Re-run the Android build.
- Verify notification permissions are correctly merged in the final APK.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Android builds in Expo and React Native are fragile. A single mismatched JDK version, a stale Gradle cache, or a conflicting Kotlin dependency can halt development for hours with cryptic stack traces.
What it does
- Identifies the root cause across environment, Gradle, Kotlin, NDK, and Manifest layers.
- Executes targeted environment checks for Windows, macOS, and Linux to find path and SDK mismatches.
- Analyzes
app.jsonand Expo config plugins to fix prebuild and autolinking failures. - Resolves dependency conflicts, version mismatches, and manifest merge errors with minimal code changes.
- Automates recovery using Gradle clean, Metro resets, and surgical cache clearing.
Frameworks & tools
Expo, React Native, Gradle, Android SDK, Kotlin, KSP, NDK, CMake, and EAS.
Why this beats prompting it yourself
General LLMs often suggest destructive actions like deleting the android/ folder or running broad upgrades that break other dependencies. This skill uses a tiered diagnostic workflow to find the smallest safe fix, preserving your custom native code and lockfiles.
Use cases
- Fixing
SDK location not foundorJAVA_HOMEtoolchain errors. - Resolving Kotlin version mismatches and KSP alignment issues.
- Debugging EAS Build failures that work fine on your local machine.
- Repairing Manifest merge conflicts caused by third-party native modules.
Known limitations
Cannot fix hardware-level USB connection issues or physical device failures. Requires project-level read access to config and Gradle files.
Cannot fix physical hardware failures or proprietary signing certificate issues. Requires read access to project configuration files and build logs.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 month ago
Requires