Build, Test & Analyze
Build Workflows
Section titled “Build Workflows”Basic Builds
Section titled “Basic Builds”Build my Android project
Runs ./gradlew assembleDebug on your project.
Build my app in release mode
Runs ./gradlew assembleRelease. Make sure your signing config is set up.
Build the :feature module in debug mode
Targets a specific module instead of the whole project.
Build with Debugging
Section titled “Build with Debugging”When a build fails and you need more details:
Build my project with stacktrace enabled
This adds --stacktrace to the Gradle command, giving you the full error trace.
Clean and Rebuild
Section titled “Clean and Rebuild”When things get stuck or you want a fresh start:
Clean my Android project
Then:
Build my Android project
Or ask for both in sequence:
Clean and rebuild my Android project
Custom Gradle Tasks
Section titled “Custom Gradle Tasks”Run any Gradle task — not just builds:
Run the assembleRelease Gradle task
Run the bundleRelease task for my project
Run the test task with —info argument
Run connectedAndroidTest on my project
Dependency Management
Section titled “Dependency Management”View the Dependency Tree
Section titled “View the Dependency Tree”Show the dependency tree for my app
This shows the full tree for the :app module’s default configuration.
Check Specific Configurations
Section titled “Check Specific Configurations”Show debugCompileClasspath dependencies for the :app module
Show releaseRuntimeClasspath dependencies
Identify Conflicts
Section titled “Identify Conflicts”Show dependencies for my app and highlight any version conflicts
Lint & Code Quality
Section titled “Lint & Code Quality”Run Lint
Section titled “Run Lint”Run Android Lint on my project
This runs lint on the :app module and returns all warnings, errors, and suggestions with file locations.
Treat Fatal Issues as Errors
Section titled “Treat Fatal Issues as Errors”Run lint and treat fatal issues as errors
Use this in CI or before releases to catch critical problems.
Lint Specific Modules
Section titled “Lint Specific Modules”Run lint on the :feature module
Combine Lint + Build
Section titled “Combine Lint + Build”Run lint on my project, then build if there are no errors
APK Analysis
Section titled “APK Analysis”Quick Summary
Section titled “Quick Summary”Analyze my debug APK
Returns size, version name/code, min/target/compile SDK, and method/field reference counts.
Full Inspection
Section titled “Full Inspection”Show full APK analysis with manifest for my release APK
Includes the full file listing and AndroidManifest.xml contents.
Check Permissions Before Release
Section titled “Check Permissions Before Release”List all permissions in my release APK
Review what permissions your app is requesting. Unexpected permissions could come from dependencies.
Analyze a Specific APK
Section titled “Analyze a Specific APK”Analyze the APK at ./app/build/outputs/apk/release/app-release.apk
Multi-Step Workflows
Section titled “Multi-Step Workflows”Pre-Release Quality Check
Section titled “Pre-Release Quality Check”-
Clean the project
Clean my Android project
-
Build release APK
Build my app in release mode
-
Run lint
Run lint and treat fatal issues as errors
-
Analyze the APK
Analyze my release APK with full details
-
Check permissions
List permissions in my release APK
Full CI Workflow
Section titled “Full CI Workflow”Clean my project, run tests, build release, run lint, and analyze the APK
Your AI editor will chain these tools together automatically.
Debug a Build Failure
Section titled “Debug a Build Failure”-
Clean first
Clean my Android project
-
Rebuild with stacktrace
Build my project with stacktrace enabled
-
Check dependencies if it’s a resolution issue
Show the dependency tree for my app
-
Check for lint issues
Run lint on my project
Compare Debug vs Release
Section titled “Compare Debug vs Release”Analyze my debug APK
Then:
Analyze my release APK
Compare sizes, method counts, and permissions between variants.