gradle-retrolambda icon indicating copy to clipboard operation
gradle-retrolambda copied to clipboard

Supporting Gradle Experimental Plugin

Open vetal20600 opened this issue 9 years ago • 8 comments

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.

vetal20600 avatar Feb 15 '16 16:02 vetal20600

Correct, it is not supported at this time.

evant avatar Feb 16 '16 00:02 evant

So the solution is to revert back to 'com.android.application'?

IgorGanapolsky avatar Mar 14 '16 20:03 IgorGanapolsky

Yeah for now, pull requests welcome :wink:

evant avatar Mar 14 '16 21:03 evant

But even with 'com.android.application', I am getting this error. Even after I removed retrolambda...

IgorGanapolsky avatar Mar 14 '16 21:03 IgorGanapolsky

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.

thibautd avatar May 26 '16 13:05 thibautd

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 avatar May 26 '16 15:05 evant

@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

IgorGanapolsky avatar May 26 '16 15:05 IgorGanapolsky

No idea, but it's likely since it was just announced at io.

evant avatar May 26 '16 15:05 evant