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
,但错误没有消失。