Closed endlforguiN closed 9 years ago
Looks like a duplicate of https://github.com/evant/gradle-retrolambda/issues/108
@evant I have read #108 , because of Annotation Processing Tool of Dagger2 ???
@endlforguiN Maybe I got the solution for the problem.
We known that Android Studio have two types of Module: 1. app Module; 2. library Module. I added this line
apply plugin: 'me.tatarka.retrolambda'
to my app Module's Gradle file : app/build.gradle
, but I forgot the library Module, and then I encountered the XxxxxJavac problem, it looks like this:
:model:compileDevelopmentDebugJavaWithJavac
编译器 (1.8.0_45) 中出现异常错误。 如果在 Bug Parade 中没有找到该错误, 请在 Java Developer Connection (http://java.sun.com/webapps/bugreport) 中建立 Bug。请在报告中附上您的程序和以下诊断信息。谢谢。
com.sun.tools.javac.code.Symbol$CompletionFailure: 找不到java.lang.invoke.MethodType的类文件
So, adding apply plugin: 'me.tatarka.retrolambda'
to the library Module will solve it, if you have forgot it.
@intret Thanks for you help !!!! I am so sorry for this belated Thanks... I forgot the password. =_= You save my lot of time . Thanks again.
Only 3.0.0 version of retrolambda can work for me, when > 3.0.0 the build task will stop after executed javac task ( to be exact after the lint task ) , also I execute the javac task independently ,and it is OK. I suspect the task list was broken because of something.But I cannot find a check method to solve it. My dev env is win7, AndroidStudio 1.4 beta . follow the guide I install java 8 sdk and set the JAVA8_HOME and the origin JAVA7_HOME in windows env path. I 'm sure the gradle script get the correct value for java home . If I create a demo project with 3.2.2, in AndroidStudio everything is OK. the build.gradle is