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
,但錯誤沒有消失。