2016-06-12 223 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問題,它現在對我的舊版本正常工作。

相關問題