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
99
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
538k
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
502k
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
474k
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'.
&...
46
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
111k
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
37k
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 ...