gradle-retrolambda
gradle-retrolambda copied to clipboard
Supporting Gradle Experimental Plugin
Does it support new Gradle Experimental Plugin? It works well with usual Gradle pugin:
apply plugin: 'com.android.application'
It does not work with new gradle exeprimental plugin.
apply plugin: 'com.android.model.application'
I see such kind of output each time trying to compile:
...
:app:compileDebugJavaWithJavac
An exception has occurred in the compiler (1.8.0_73). Please file a bug at the Java Bug Database (http://bugreport.java.com/bugreport/) after checking the database for duplicates. Include your program and the following diagnostic in your report. Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.invoke.MethodType not found
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Correct, it is not supported at this time.
So the solution is to revert back to 'com.android.application'?
Yeah for now, pull requests welcome :wink:
But even with 'com.android.application', I am getting this error. Even after I removed retrolambda...
Is there any chance that you could provide an easy workaround ? I can't rollback to com.android.application because I need NDK integration in Android Studio.
Not that I know of, pull requests welcome. You can try using the new cmake or ndk-build support, since that doesn't require the experimental model http://tools.android.com/tech-docs/external-c-builds
@evant Is it still the case that
ndk-build does not currently support Application.mk: we expect this to be fixed in the near future
No idea, but it's likely since it was just announced at io.