Linked Questions
35 questions linked to/from Android Studio Error "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8"
0 votes
1 answer
2k views
flutter:Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 [duplicate]
I am trying to develop a app using flutter, when I enter ../gradlew signingreport, it returns am error: Then I check the problem on Google and I can not change the Java version because I can not find ...
1 vote
0 answers
97 views
Incompatible because this component declares a component for use during compile-time - Java 11 and Java 8 error in gradlew [duplicate]
I keep getting this error: Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, ...
509 votes
22 answers
536k views
Mac OS X and multiple Java versions
How can I install an additional java on MacOS? I installed jdk8 and that works fine. But now I need a jdk7 installation for development purposes. When trying to install the old version via DMG file, ...
204 votes
35 answers
500k views
Generate SHA-1 for Flutter/React-Native/Android-Native app
I'm trying to generate a SHA-1 for a Flutter app, for Android studio to support Google Sign in, but I don't know how to do that, I saw some posts that indicate to run a command, but there I need a jks ...
267 votes
21 answers
473k views
Error message "gradlew: command not found"
I am working on a Java project with Gradle Wrapper (gradlew). I use Ubuntu Linux as my OS. When I run "gradle" it runs, and gives me information. But when I run "gradlew", it ...
110 votes
23 answers
137k views
Kotlin could not find the required JDK tools in the Java installation
When running ./gradlew clean build I get following message: > Task :compileKotlin FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileKotlin'. &...
45 votes
18 answers
93k views
How to resolve "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8", when I am using Java 11
I imported a Flutter project into Visual Studio Code, and when I tried to run it, I got this error message: FAILURE: Build failed with an exception. Where: Build file '/home/omer358/FlutterProjects/...
47 votes
10 answers
110k views
Android Gradle plugin requires Java 17 to run. You are currently using Java 11
Full Error -- An exception occurred applying plugin request [id: 'com.android.application'] Failed to apply plugin 'com.android.internal.application'. Android Gradle plugin requires Java 17 to run. ...
26 votes
5 answers
36k views
flutter not using jdk from JAVA_HOME
I am currently developing a Flutter application on my Mac and am trying to test my app on an Android emulator. To facilitate this, I have installed Android Studio along with the Android SDK. Running ...
14 votes
5 answers
43k views
Error: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. -& Failed to apply plugin 'com.android.internal.application'
I have tried all the possible solutions for this error. Require guidance here: I am using Windows Laptop : Android Studio 2020.3.1.22 Below is the build.graddle file: plugins { id 'com.android....
14 votes
9 answers
22k views
I updated the Android Studio to the latest version (3.6.1) and Gradle Plugin is not found now
In an Android application, I updated the Android Studio to the latest version (3.6.1) Now when Syncing Gradle, the Gradle Plugin is not found with the errors as following: Caused by: org....
21 votes
2 answers
84k views
How to change java version for flutter package?
I'm editing java files in a package of my flutter project, but it is build with source 1.7, how can I change it? [√] Flutter (Channel dev, 1.27.0-8.0.pre, on Microsoft Windows [Version 10.0.18363....
19 votes
7 answers
31k views
How to change Android Studio default gradle JDK to 11
Getting this message when I click run: > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You ...
7 votes
1 answer
25k views
Script to Change JAVA_HOME System Variable in Windows
I do most of my work against JDK 1.5 - but occasionally I have to change to 1.6. it is a bit painful to have to manually go and change my 'JAVA_HOME' system variable whenever I need to work on a ...
9 votes
2 answers
12k views
Android, Azure Devops geting error while run pipeline ##[error]Error: The process '/Users/runner/work/1/s/gradlew' failed with exit code 1
Android, Azure Devops geting error while run pipeline ##[error]Error: The process '/Users/runner/work/1/s/gradlew' failed with exit code 1 At locale system everything working apk generated but when ...
15 votes
2 answers
14k views
How can I change the default JDK for new Android Studio projects?
Every time I create a new project in Android Studio I'm met with the following build error: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. I already know how to ...
6 votes
2 answers
13k views
After changed JAVA.VERSION to 11 I get "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8"
I have changed sourceCompatibility and targetCompatibility to JavaVersion.VERSION_11 in build. gradle files for all modules. In my PC I have JDK 11, JAVA_HOME and path are ok, in project: But I still ...
7 votes
2 answers
9k views
Android Studio no option to change Gradle JDK path
I have been trying to install Flutter and everything went smoothly until I launched the debugger and got an error stating, you need java 11 or higher to build your app with this version of gradle. I ...
7 votes
2 answers
10k views
App center Error: /Users/runner/work/1/s/android/gradlew failed with return code: 1
I'm using react native to build my apps and thought to give Microsoft app center a chance. The main issue I have is that I cannot finish the build. This should be a non-production build that will be ...
3 votes
1 answer
2k views
"Android Gradle plugin requires Java 11 to run" While publishing jitpack library
I'm trying to publish an empty jitpack library for test purposes by using this github repo But I'm having * What went wrong: An exception occurred applying plugin request [id: 'com.android.application'...
2 votes
2 answers
5k views
Flutter : Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8
I can't edit my jdk version Here: And when I execute gradlew --version It says that I'm using Java 11:
2 votes
2 answers
6k views
how can I change java version(android studio)
$ java -version java version "17.0.3.1" 2022-04-22 LTS Java(TM) SE Runtime Environment (build 17.0.3.1+2-LTS-6) Java HotSpot(TM) 64-Bit Server VM (build 17.0.3.1+2-LTS-6, mixed mode, sharing)...
1 vote
3 answers
3k views
Flutter application not working due to Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8
I am trying to make a flutter application but I constantly get this error : * What went wrong: A problem occurred evaluating project ':app'. > Failed to apply plugin 'com.android.internal....
1 vote
1 answer
3k views
You need Java 11 or higher to build your app with this version of Gradle?
Was building app using flutter and vs code ,I had not installed android studio can i know how to upgrade Java version OpenJDK Runtime Environment. My java version C:\Android\cmdline-tools\tools>...
-1 votes
3 answers
1k views
Android Studio - I imported a file from GitHub but when I run it it gives an error
I'm working on a Flutter app that I imported from GitHub But when I run it it does not work and gives this error and when I create a new app it doesn't show any problems
1 vote
1 answer
1k views
Stuck in a cycle of incompatible gradle version in Android Studio
I see similar questions have been asked before, but they do not cover the full scope of issue I am facing. I am a beginner and whenever I create a new android project, the default auto generated ...
1 vote
0 answers
790 views
Could not run phased build action using connection to Gradle distribution Visual Studio Code Mac Issues
My flutter app was not working in Visual Studio Code today and I got this error: Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/...
0 votes
1 answer
721 views
./gradlew failed in React Native 0.68 (Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.)
After updating to React Native 0.68, I got this error when executing ./gradlew : FAILURE: Build failed with an exception. * Where: Build file '/Users/username/path/projectname/android/app/build....
-1 votes
1 answer
722 views
Java 11 error in flutter project in visual studio code
I am facing this error and after research, I found that I have to install Java 11 or higher after installing it the error still has not gone and this is the current version of Java that I have ...
-1 votes
1 answer
670 views
JitPack build failed "ERROR: No build artifacts found" [duplicate]
I can't seem to understand why JitPack is failing to build my library, when I check the build log I find these errors and warnings: An exception occurred applying plugin request [id: 'com.android....