Android Studio 0.9.1, OSX, JDK8 not found
See original GitHub issueThis is my current configuration:
Module’s build.gradle:
apply plugin: 'retrolambda'
retrolambda {
jdk System.getenv("JAVA8_HOME")
oldJdk System.getenv("JAVA6_HOME")
javaVersion JavaVersion.VERSION_1_6
}
System env
dhcp-159-104-130-193:~ me$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
dhcp-159-104-130-193:~ me$ echo $JAVA8_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
AS GUI config:
JDK Location: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
And it’s still not finding it due to:
Error:Execution failed for task ':mobile:patchAndroidJar'.
> Retrolambda: null/jre/lib/rt.jar does not exist, make sure that the environment variable JAVA_HOME or JAVA8_HOME, or the gradle property retrolambda.jdk points to a valid version of java8.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:15
Top Results From Across the Web
Android studio not installing even if JDK 8 is installed
I solved this problem by closing the installation file, and open it again as an administrator. Pre over the need to set jdk....
Read more >VSMac states that OpenJDK 1.8.0.9 needs installing when it is ...
To point VS to this directory, open 'Preferences > SDK Locations > Android > Locations'. For 'Java SDK (JDK) Location' navigate or type...
Read more >URGENT- "Java 11 or more recent is required to run ... - GitHub
I don't understand why today I'm getting this error. Managed to temporarily solve this by downgrading Language Support for Java(TM) by Red ...
Read more >Configure Android Studio - Android Developers
Set the JDK version · Open your project in Android Studio and select File > Settings... > Build, Execution, Deployment > Build Tools...
Read more >Java Runtime not found | Apple Developer Forums
When you install Java (JRE) and try build your app, the build now finds Javas JRE which has everything it is needs to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My solution for it.
I found a workaround by going to Android Studio -> Preferences -> Path Variables and adding