Incrementally fixes Gradle build and compilation errors for Android and KMP projects by detecting issues, applying minimal changes, verifying builds, and reporting fixed/remaining errors with next steps.
From everything-claude-codenpx claudepluginhub burgebj/everything-claude/gradle-buildIncrementally fixes Gradle build and compilation errors for Android and KMP projects by detecting issues, applying minimal changes, verifying builds, and reporting fixed/remaining errors with next steps.
/gradle-buildIncrementally fixes Gradle build and compilation errors for Android and KMP projects by detecting issues, applying minimal changes, verifying builds, and reporting fixed/remaining errors with next steps.
/gradle-buildIncrementally fixes Gradle build and compilation errors for Android and KMP projects by detecting issues, applying minimal changes, verifying builds, and reporting fixed/remaining errors with next steps.
/gradle-buildIncrementally fixes Gradle build and compilation errors for Android and KMP projects by detecting issues, applying minimal changes, verifying builds, and reporting fixed/remaining errors with next steps.
/gradle-buildIncrementally fixes Gradle build and compilation errors for Android and KMP projects by detecting issues, applying minimal changes, verifying builds, and reporting fixed/remaining errors with next steps.
/gradle-buildIncrementally fixes Gradle build and compilation errors for Android and KMP projects by detecting issues, applying minimal changes, verifying builds, and reporting fixed/remaining errors with next steps.
Incrementally fix Gradle build and compilation errors for Android and Kotlin Multiplatform projects.
Identify the project type and run the appropriate build:
| Indicator | Build Command |
|---|---|
build.gradle.kts + composeApp/ (KMP) | ./gradlew composeApp:compileKotlinMetadata 2>&1 |
build.gradle.kts + app/ (Android) | ./gradlew app:compileDebugKotlin 2>&1 |
settings.gradle.kts with modules | ./gradlew assemble 2>&1 |
| Detekt configured | ./gradlew detekt 2>&1 |
Also check gradle.properties and local.properties for configuration.
For each error:
build.gradle.ktsStop and ask the user if:
Report:
| Error | Fix |
|---|---|
Unresolved reference in commonMain | Check if the dependency is in commonMain.dependencies {} |
| Expect declaration without actual | Add actual implementation in each platform source set |
| Compose compiler version mismatch | Align Kotlin and Compose compiler versions in libs.versions.toml |
| Duplicate class | Check for conflicting dependencies with ./gradlew dependencies |
| KSP error | Run ./gradlew kspCommonMainKotlinMetadata to regenerate |
| Configuration cache issue | Check for non-serializable task inputs |