Cordova Android Clean Build
August 7, 2025 · AI Conversations
User
cordova clean build andorind
Assistant
To perform a **clean build** for your Apache Cordova Android project, follow these steps in your project root:
—
### ✅ 1. Clean the project
cordova clean android
This removes `platforms/android/build`, `plugins`, and other cached artifacts related to the Android platform.
—
### ✅ 2. Rebuild the project
cordova build android
This command will:
– Re-add necessary plugins/platforms (if cleaned).
– Rebuild the APK/AAB using Gradle for Android.
—
### ✅ Optional: Full Reset (if `clean` doesn't fix issues)
If you're still facing issues, run:
cordova platform remove android
cordova platform add android
cordova build android
—
### 💡 Tips
– If you're using Cordova with custom plugins or Framework7, make sure to re-install plugin dependencies after a full platform removal.
– For logging build issues:
cordova build android --verbose
Let me know if you're using Android Studio or Gradle directly and need extra cleanup (`.gradle`, `.idea`, etc.) instructions.