Android gradle plugin requires java 11 to run you are currently using

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Читайте также:  Running python scripts in blender

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

I am running my app in android and getting this exceptions

FAILURE: Build failed with an exception. * Where: Build file '/Users/ahsanriaz/Documents/AmeerHamza/upwchatapp/jayct-sk_app-6498c131d5fa/android/app/build.gradle' line: 24 * What went wrong: A problem occurred evaluating project ':app'. > 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`. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1s Exception: Gradle task assembleDebug failed with exit code 1 

ive setup gradle jdk 11 inside android studio with path but issue not resolved please help

The text was updated successfully, but these errors were encountered:

danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 22, 2021

github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 27, 2021

Can you try creating the default android app and let me know if you run into this issue with that?

I want to confirm whether or not this is an issue flutter has any control over.

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fix the error «Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.» in React Native? #33416

How to fix the error «Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.» in React Native? #33416

Platform: Android Android applications. Resolution: Fixed A PR that fixes this issue has been merged. Resolution: Locked This issue was locked by the bot.

Comments

Description

[admin@DF713 android % ./gradlew app:installDebug
FAILURE: Build failed with an exception.
  • Where:
    Build file ‘/Users/admin/Downloads/ritehauler-user/android/app/build.gradle’ line: 1
  • What went wrong:
    A problem occurred evaluating project ‘:app’.

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 .

Run with —stacktrace option to get the stack trace.
Run with —info or —debug option to get more log output.
Run with —scan to get full insights.

I am running the command from zsh terminal.
Thanks.

Version

Output of npx react-native info

System:
OS: macOS 11.6
CPU: (4) x64 Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
Memory: 64.71 MB / 8.00 GB
Shell: 5.8 — /bin/zsh
Binaries:
Node: 14.17.5 — ~/.nvm/versions/node/v14.17.5/bin/node
Yarn: 1.22.17 — ~/Downloads/ritehauler-user/node_modules/.bin/yarn
npm: 6.14.14 — ~/.nvm/versions/node/v14.17.5/bin/npm
Watchman: 2022.01.24.00 — /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 — /Users/admin/.gem/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 28, 29, 32
Build Tools: 29.0.2, 32.1.0
System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google Play Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8092744
Xcode: 12.5/12E262 — /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 — /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.2 => 0.67.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

Run react-native run-android in project root directory.

The text was updated successfully, but these errors were encountered:

Источник

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

[Solved] Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8

This error is thrown if a different java version is selected in Android Studio and you are trying to run a project. It says that Java 11 is required for Android Gradle plugin and you are currently using Java 1.8, 1.7 etc.

Even if Java is installed on your system, this issue might occure. On my system, Java or jdk 14 and 13 are installed. But, I got it after one Android Studio update.

Full error:

Below is the complete full error thrown in Android Studio console:

'/Users/xxx/AndroidStudioProjects/RadioButtons/app/build.gradle' line: 2 An exception occurred applying plugin request [id: 'com.android.application'] > 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`. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Gradle plugin error

Solution:

It is pretty simple to solve and the issue is self-explanatory. Change the path for jdk and done. If you have JDK installed, it will not take more than a minute.

Go to Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle.

Check what is selected in Gradle JDK. In my case, 1.8 is selected.

Android studio gradle build failed

Click on it and it will show you all available options including detected SDKs, i.e. SDKs installed in your system.

Click on a version that is greater than 11.

detected jdk

Download JDK:

If your system doesn’t have any JDK installed, you can click on the Download JDK option in the above window.

It will show you another window as like below:

download jdk

Select the version, vendor and location for the JDK and click on Download to download it. Once download is done, you can change the path and it should work. © 2022, nkaushik

Источник

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

[Solved] Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8

This error is thrown if a different java version is selected in Android Studio and you are trying to run a project. It says that Java 11 is required for Android Gradle plugin and you are currently using Java 1.8, 1.7 etc.

Even if Java is installed on your system, this issue might occure. On my system, Java or jdk 14 and 13 are installed. But, I got it after one Android Studio update.

Full error:

Below is the complete full error thrown in Android Studio console:

'/Users/xxx/AndroidStudioProjects/RadioButtons/app/build.gradle' line: 2 An exception occurred applying plugin request [id: 'com.android.application'] > 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`. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Gradle plugin error

Solution:

It is pretty simple to solve and the issue is self-explanatory. Change the path for jdk and done. If you have JDK installed, it will not take more than a minute.

Go to Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle.

Check what is selected in Gradle JDK. In my case, 1.8 is selected.

Android studio gradle build failed

Click on it and it will show you all available options including detected SDKs, i.e. SDKs installed in your system.

Click on a version that is greater than 11.

detected jdk

Download JDK:

If your system doesn’t have any JDK installed, you can click on the Download JDK option in the above window.

It will show you another window as like below:

download jdk

Select the version, vendor and location for the JDK and click on Download to download it. Once download is done, you can change the path and it should work. © 2022, nkaushik

Источник

Оцените статью