2016-06-12 96 views
0

我打开了一个旧项目,分成6个模块,其中Android Studio但它在构建任务中始终失败。 我ENV是:Android Studio - 任务执行失败compileReleaseJavaWithJavac

Ubuntu 14.04 
OpenJDK7 
Android Studio 2.2 preview 2 

它在构建失败的大多数模块,并告诉我,它无法找到一个Java编者,在这里,你是错误跟踪:

What went wrong: 
Execution failed for task ':maskable_layout:compileReleaseJavaWithJavac'. 
Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory. 

Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

我确信我的机器上安装了JDK,我试图在我的配置文件.bachrc中安装Oracle Java和修改JAVA_HOME,但错误没有消失。

回答

0

答案是回到老版本Android Studio 2.1。 这似乎是一个新的Android Studio问题,它现在对我的旧版本正常工作。

相关问题