Click Project Structure to solve it without response

For record only.

Reappearance of the scenario : When I installed two versions of AS on the same computer, I used the version that was installed after a while (non-installed version), and then switched back to the originally installed version, and found that I clicked Project Structure No response after that, look at the lower right corner and there is a reminder error (click the red exclamation mark):

Gradle sync failed: Incomplete or corrupted installation - "D:\prebuilts\studio\jdk\win64" directory does not exist.

Seeing this error, I was stunned and didn't know what it was. I was sure that the computer had never created this path, and I ignored it at the beginning.

Then open the omnipotent Baidu, find many solutions, roughly divided into the following two:

1. Clear the AS cache to restart, that is, click File → Invalite Caches/Restart → Invalidate and Restart.

 

However, the operation does not work after several times, so give up;

2. In addition, it means that there is a SDK version conflict. You need to cancel the check mark in front of the conflict version, that is, delete. The specific conflict version depends on your own error message, but I saw that the error message is different from mine. Matter, pass directly.

 

Solution : Finally, follow the prompts in the error message honestly and create a local path "D:\prebuilts\studio\jdk\win64", and then run it, OK. . .

 

It feels very stupid, and I don't know why, anyway, it's all right, passing by the Great God begging to leave instructions.

 

 

 

Guess you like

Origin blog.csdn.net/qq_31841675/article/details/107565933