Error:Java home supplied via 'org.gradle.java.home' is invalid. Invalid directory: C:\Program Files\

After I came to the company this morning, when I opened AndroidStudio to update the code submitted by other colleagues, I reported the following error:
Error:Java home supplied via 'org.gradle.java.home' is invalid. Invalid directory: C:\Program Files\Java\jdk1.8.0_161

My java home has it, and all the configurations are correct. I checked it later, and there is no such directory on my computer. After passing through Baidu, I need to do the following operations. In gradle.properties, put org.gradle.java. home removed.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326344818&siteId=291194637