-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
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
Fatal Error: Unable to find package java.lang in classpath or bootclasspath #36
Comments
Do you have the correct android sdk version downloaded? Try checking |
Had the same problem. The compiler options looks like this:
Problem seems to be that the patched |
@mkuprionis It sounds like it's not finding the Could you also check your ANDROID_HOME and local.properties file to see if everything looks correct? |
Ok, seems this is related to Android L. To compile against it I need to set Possible to solve this by creating a symlink: |
I have an |
Well this is strange. I'm using SDK managed by Android Studio. It has Android L installed and everything is up to date. But there's only However there's also a standalone SDK in another location which I haven't used for a while. There I found |
Yeah, I don't even know how that even would work. I'll leave this issue open so that others can find it if they run into that craziness. |
I updated the README to include the work around, So I don't need to keep the issue open. |
@evant I have same problem. I use 2.4.1, AS 1.1.0 and sdk 21. |
Try running |
Hi, |
@paulrenn any solutions? |
I'm also experiencing the same problem as @paulrenn . Creating a simlink from Google Inc.:Google APIs:21 to android-21 doesn't fix the problem. |
I was not able to solve this directly. The only workaround I found, which was not very satisfactory, was to make a library where all the RX calls could be done, which I was able to compile without the Google APIs. Then I have the main app which requires Google APIs but is unable to use RX. |
Try with 3.0.0, it should fix this |
Hi @evant , I am using the latest gradle-retrolambda(3.2.0) but still get the same issue, I can not see the android.jar in build/retrolambda folder neither. There are JDK 1.7 and 1.8 in my pc, and I set 1.8 as my JAVA_HOME and the JAVA8_HOME in my system variable as well. Any further suggestion? |
Hello @evant , finally I change jdk value from System.getenv to '/Library/xxx/Home<>', it works. Could you please explain this? I will also keep an eye on this. Anyway, really appreciate for the great project.
|
Same issue, same fix as @leiweibo. |
Hi, I am trying to integrate gradle-retrolambda in my Android project, but I am getting the following error when I run my gradle build
:app:compileDebugJava
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
Stacktrace:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJava'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
....
Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:47)
at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:38)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJav
I thought it was strange, that it uses the jdk6.Jdk6JavaCompiler although I configured for Java7 compatibility, see below.
Gradle version info:
------------------------------------------------------------
Gradle 1.12
------------------------------------------------------------
Java environment paths:
JAVA_HOME=/usr/lib/jvm/java-8-oracle
JAVA8_HOME=/usr/lib/jvm/java-8-oracle
JAVA7_HOME=/usr/lib/jvm/java-7-oracle
Gradle build file:
}
Just to verify my java8 installation, I created a gradle project in intellij without retrolambda, and that works fine.
Do you have any idea, what might go wrong here and how to fix it?
The text was updated successfully, but these errors were encountered: