Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME

編譯的時候出現這個。

Error:Execution failed for task ':app:compileDebugJava'.
> 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.

是因爲JDK的位置設置錯了,一般默認。

解決方法:




到這一步就已經ok了.

發佈了156 篇原創文章 · 獲贊 116 · 訪問量 76萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章