Failed to complete Gradle execution (new project) - java home different

前端 未结 6 2561
感动是毒
感动是毒 2020-12-06 13:07

I downloaded Android Studio version [build 135.1653844] and created a new project. I am getting an error:

Failed to complete Gradle execution.
Cause:
The new         


        
6条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 14:07

    This error appear most likely downloading applications (such as Oracle, Application servers...) that include java version or installing another JDK/JRE.

    I managed to solve the this problem by deleting/renaming all JDK/JRE and forders and only keep one and only one JDK folder and contains JRE folder inside.

    also I put the JDK path into JAVA_HOME and path vatiables and remove any other JDK/JRE paths from the environment variables.

    After that reset the JDK home in your IDE.

    Regards, Mohammed Kharma

提交回复
热议问题