---
title: "Android Gradle plugin requires Java 11 to run"
canonical_url: "https://www.nutrient.io/guides/react-native/troubleshooting/android-gradle-plugin-requires-java-11/"
md_url: "https://www.nutrient.io/guides/react-native/troubleshooting/android-gradle-plugin-requires-java-11.md"
last_updated: "2026-05-15T19:10:05.056Z"
description: "Solutions for common issues and errors in Nutrient React Native SDK with debugging tips and workarounds."
---

When using an outdated version of Android Studio, you may encounter the following error message:

```bash

> Failed to apply plugin 'com.android.internal.application'.

> Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

You can try some of the following options:

- changing the IDE settings.

- changing the JAVA_HOME environment variable.

- changing `org.gradle.java.home` in `gradle.properties`.

```

As a requirement to run, Nutrient React Native SDK needs the [latest stable version of Android Studio](https://developer.android.com/studio). Starting with version `4.2`, Android Studio is now bundled with JDK 11.

Once the installation has completed, enter the following in your terminal app:

```bash

java -version

```

Then, verify that the JDK version has been correctly updated to 11:

```bash

openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.24.0, JRE 11 Mac OS X amd64-64-Bit Compressed References 20210120_897 (JIT enabled, AOT enabled)
OpenJ9   - 345e1b09e
OMR      - 741e94ea8
JCL      - 0a86953833 based on jdk-11.0.10+9)

```
---

## Related pages

- [Guide to adding a Nutrient license key in React Native](/guides/react-native/troubleshooting/add-license-key.md)
- [How to find your iOS app bundle ID easily](/guides/react-native/troubleshooting/finding-the-bundle-id.md)
- [Find out your Nutrient version easily](/guides/react-native/troubleshooting/getting-the-currently-used-version.md)
- [Fixing Android back button crash with Nutrient](/guides/react-native/troubleshooting/handling-back-navigation-with-react-native-screens.md)
- [Nightlies](/guides/react-native/troubleshooting/nightlies.md)
- [Fix new architecture build issues in React Native](/guides/react-native/troubleshooting/new-architecture-build-issues.md)
- [Out Of Memory Error React Native Android](/guides/react-native/troubleshooting/out-of-memory-error-react-native-android.md)
- [NutrientView inside a modal is blank or crashes on Android](/guides/react-native/troubleshooting/nutrientview-modal-android.md)
- [React Navigation](/guides/react-native/troubleshooting/react-navigation.md)
- [Managing Nutrient's render cache effectively](/guides/react-native/troubleshooting/outdated-render-cache.md)
- [Textinput Error React Native Android](/guides/react-native/troubleshooting/textinput-error-react-native-android.md)
- [View controller-based status bar appearance](/guides/react-native/troubleshooting/view-controller-based-status-bar-appearance.md)
- [Understanding bundle IDs for iOS app development](/guides/react-native/troubleshooting/what-is-a-bundle-id.md)
- [Understanding app IDs in Android development](/guides/react-native/troubleshooting/what-is-an-app-id.md)
- [CMake/Ninja build error caused by long file paths on Windows](/guides/react-native/troubleshooting/windows-path-length-cmake-error.md)
- [Fix Xcode error code 65 for React Native on M1 Macs](/guides/react-native/troubleshooting/xcode-error-65-missing-required-target-architectures-react-native.md)

