Open nothisboy opened 8 years ago
You don't mention what OS you're on but I'm assuming windows. I've seen this error on a bunch of projects but only when building via gradlew from the windows command line. Works fine on linux.
I don't know what the direct issue is but I can offer a solution: Run the gradle build in a daemon. I don't knwo why, but it works.
org.gradle.daemon=true
(Best in your global gradle.properties file.)
Note that fixing this error will most likely cause some noisy warnings:
java.lang.UnsupportedOperationException: Unknown ASTNode child: LambdaExpression
at lombok.ast.ecj.EcjTreeVisitor.visitOther(EcjTreeVisitor.java:368)
The fix for this one's easy though, just add this to the buildscript dependencies:
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
i have this problem in mac os
I encountered this when I didn't have JAVA7_HOME and JAVA8_HOME env variables configured.
com.sun.tools.javac.code.Symbol$CompletionFailure: 找不到java.lang.invoke.MethodType的类文件 Error:Execution failed for task ':app:compileDebugUnitTestJavaWithJavac'.
code in my build.gradle:
How to resolve this problem? I need help,please.