Skip to content

Build, Test & Analyze

Build my Android project

Runs ./gradlew assembleDebug on your project.

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.

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

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


Show the dependency tree for my app

This shows the full tree for the :app module’s default configuration.

Show debugCompileClasspath dependencies for the :app module

Show releaseRuntimeClasspath dependencies

Show dependencies for my app and highlight any version conflicts


Run Android Lint on my project

This runs lint on the :app module and returns all warnings, errors, and suggestions with file locations.

Run lint and treat fatal issues as errors

Use this in CI or before releases to catch critical problems.

Run lint on the :feature module

Run lint on my project, then build if there are no errors


Analyze my debug APK

Returns size, version name/code, min/target/compile SDK, and method/field reference counts.

Show full APK analysis with manifest for my release APK

Includes the full file listing and AndroidManifest.xml contents.

List all permissions in my release APK

Review what permissions your app is requesting. Unexpected permissions could come from dependencies.

Analyze the APK at ./app/build/outputs/apk/release/app-release.apk


  1. Clean the project

    Clean my Android project

  2. Build release APK

    Build my app in release mode

  3. Run lint

    Run lint and treat fatal issues as errors

  4. Analyze the APK

    Analyze my release APK with full details

  5. Check permissions

    List permissions in my release APK

Clean my project, run tests, build release, run lint, and analyze the APK

Your AI editor will chain these tools together automatically.

  1. Clean first

    Clean my Android project

  2. Rebuild with stacktrace

    Build my project with stacktrace enabled

  3. Check dependencies if it’s a resolution issue

    Show the dependency tree for my app

  4. Check for lint issues

    Run lint on my project

Analyze my debug APK

Then:

Analyze my release APK

Compare sizes, method counts, and permissions between variants.