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.