Avengers icon indicating copy to clipboard operation
Avengers copied to clipboard

Error:Execution failed for task ':app:compileDebugJava'.

Open xxmbaobao opened this issue 9 years ago • 3 comments

when i run this app,with the following poroblems,my jdk version is 1.7,what should i do ? thanks ps:retrolambda need jdk version 1.8?

Error:Execution failed for task ':app:compileDebugJava'.

When running gradle with java 6 or 7, you must set the path to jdk8, either with property retrolambda.jdk or environment variable JAVA8_HOME

xxmbaobao avatar Jun 27 '15 05:06 xxmbaobao

Yes,me too,how to fix it?

bakeny avatar Jul 20 '15 05:07 bakeny

adding to build.gradle (app module):

retrolambda { jdk 'C:\Program Files\Java\jdk1.8.0_65' // Or whatever path you have }

yinpeng633 avatar Oct 26 '15 08:10 yinpeng633

install jdk 1.8 (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)

joginder89 avatar Nov 19 '15 05:11 joginder89