Android Studio: failed to complete gradle execution, cause is empty

后端 未结 19 2209
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 18:22

When I try to run an Android emulator, I get the following error screen. The same occurs when I export the apk. When I go to the directory where the apk will be saved, the a

19条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 18:57

    None of the solutions worked for me. So I found this solution here:

    My Android Studio was using JDK 1.8, so I switched back to JDK 1.7 and now it is working!

    Go to

    File > Project Structure > SDK Location

    I had JDK Location set as jdk1.8.0_05. I just changed it to jdk1.7.0_79 and everything works fine now.

提交回复
热议问题