---
title: The Android Troubleshooting Guide for Capacitor
description: Troubleshoot common issues when building your Capacitor Android app, including Gradle version errors, plugin implementation issues, and blank screens.
date: 
  created: 2024-04-12
  updated: 2026-07-14
search:
  boost: 2
authors:
  - robingenz
categories:
  - Capacitor
  - Guides
faq: true
---

# The Android Troubleshooting Guide for Capacitor

Capacitor is a great tool to build cross-platform apps with web technologies. 
However, sometimes you might run into issues when building your Android app. 
This post will help you to troubleshoot common issues.

<!-- more -->

???+ info "Help us to improve this guide"

    If you are aware of any other common issues, please send us an email to [support@capawesome.io](mailto:support@capawesome.io) so that we can update the guide.

## Errors

### `Minimum supported Gradle version is 8.4. Current version is 8.2.1.`

<!-- Minimum supported Gradle version is 8.4. Current version is 8.2.1. If using the gradle wrapper, try editing the distributionUrl in /Users/runner/work/cc/cc/packages/app/android/gradle/wrapper/gradle-wrapper.properties to gradle-8.4-all.zip -->

This error occurs if you are using a version of the Android Gradle plugin that is incompatible with Capacitor. To fix the problem, you need to use the correct version of the Gradle plugin in your project. You can find the correct version in the [Capacitor documentation](https://capacitorjs.com/docs/){:target="_blank"}.

For Capacitor 6, for example, you must use version `8.2.1`. Update the Android Gradle plugin version in your root-level (project-level) Gradle file (usually `android/build.gradle`):

```gradle title="android/build.gradle" hl_lines="7"
buildscript {
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:8.2.1'
    }
}
```

### Plugin is not implemented

If Capacitor cannot find a plugin or cannot inject its code into the WebView, the following error is thrown, for example:

```
"Badge" plugin is not implemented
```

Follow the steps below to solve this issue:

1. Make sure that the plugin is installed and appears in the `package.json`.
2. Sync the native project by running `npx cap sync android`.
3. Sync the native project with Gradle files by using the `File` -> `Sync Project with Gradle Files` button in Android Studio.
4. Make sure you are using Node.js version 22 or higher.

### Blank screen

A blank screen can have many causes. Here are some common reasons and solutions.

#### With live reload

If you see a blank screen when using live reload, check the following:

1. Make sure that your development server uses all network interfaces and not only `localhost`. For example, if you are using the Ionic CLI, you can use the `--external` option to bind to all network interfaces:

    ```bash
    ionic cap run android -l --external
    ```

2. Make sure that your development server is accessible from the device. You can check this by opening the URL in the device's browser. If the URL is not accessible, the app will not be able to load the content. This may be due to the following reasons:

    - The device is not connected to the same network as the development server.
    - The development server is not accessible from the device due to firewall settings.

3. Make sure that the content is not blocked by a Content Security Policy (CSP) or other security mechanisms. You can check this by opening the browser's developer tools and looking for errors in the console.

#### Without live reload

If you see a blank screen without live reload, check the following:

1. Make sure you are using the latest WebView version. Capacitor requires Android 5.1 as well as a WebView version of 60 or higher. You can check the WebView version in the device's settings.
1. If you are using **Angular**, make sure that your `.browserslistrc` or `browserslist` file includes the browser versions you need to support. The Angular CLI uses this file to determine which code it can optimize. Check out [this topic](https://forum.ionicframework.com/t/ionic-6-default-project-white-screen-on-android-30-or-below-when-using-prod/228087){:target="_blank"} for more information.

## FAQ

### How do I clean and rebuild my Android project?

Many Gradle errors clear after a clean build. Run `./gradlew clean` in the `android` directory, or in Android Studio use **Build > Clean Project** followed by **Build > Rebuild Project**. If problems persist, invalidate caches with **File > Invalidate Caches / Restart**, then run `npx cap sync android` and sync the Gradle files again.

### How do I inspect the WebView and see console logs?

Open `chrome://inspect` in Google Chrome on your computer with the device connected and USB debugging enabled — it lists your app's WebView so you can attach DevTools to read console logs and inspect the DOM. For native-side logs, use `adb logcat` or the Logcat panel in Android Studio.

### Why don't my web code changes show up in the app?

Capacitor bundles your **built** web assets into the native app, so editing source files isn't enough. Rebuild the web app and copy it over with `npx cap sync android` (or `npx cap copy android`), then run the app again. During active development, use live reload so changes appear instantly.

### My device isn't detected by Android Studio or adb — what's wrong?

Make sure USB debugging is enabled and that you accepted the authorization prompt on the device. See [how to enable Developer Options on Android](./how-to-enable-android-developer-mode.md) for the full setup, and confirm you're using a data-capable USB cable with the **File transfer** USB mode. Running `adb devices` should list the device as `device`, not `unauthorized`.

### Which JDK version do I need?

Recent Capacitor and Android Gradle Plugin versions require JDK 17. Point Android Studio at a JDK 17 (Gradle JDK under **Settings > Build, Execution, Deployment > Build Tools > Gradle**), and set `JAVA_HOME` to a JDK 17 for command-line builds.

### Where do I change the minSdk, targetSdk, or compileSdk?

These are defined in `android/variables.gradle`. Edit the values there rather than in each module's `build.gradle`, so the whole project — including Capacitor plugins — stays consistent.

## Related Posts

- [How to Fix Capacitor Plugin Build Errors with AGP 9](./how-to-fix-capacitor-plugin-build-errors-with-agp-9.md)
- [How to patch a Capacitor plugin](./how-to-patch-a-capacitor-plugin.md)
- [The iOS Troubleshooting Guide for Capacitor](./troubleshooting-capacitor-ios-issues.md)
