Android Studio cannot open problem resolution record

1 Cause of the problem

The cause of the problem was that I reported an error in order to run a Kotlin project:
Kotlin报错The binary version of its metadata is 1.5.1, expected version is 1.1.16
Then I went to Baidu and searched for the following. A blog told me to disable the Kotlin plug-in. I did it without thinking too much and disabled it. The plug-in is as follows:
Insert image description hereAfter disabling it, I found that not only did it not solve my problem, but it also crashed my Android Studio. This is not the most uncomfortable thing. The most uncomfortable thing is that I uninstalled Android Studio and then reinstalled it. .

2 Found the problem

The problem is that every time I start Android Studio, the following prompt will appear:
Insert image description here
This prompt also appears when uninstalling and then installing, because the corresponding plug-in directory is not deleted when uninstalling, and this problem will still occur when you install it again. , I see that the solution is already available online for MAC, and it seems that it is also available for Windows. I will simply record the solution process here.

3 Solve the problem

It is certain that our disabling the Kotlin plug-in caused this problem, so we need to find a way to get the disabled plug-in back. We could operate it on the interface before, but the current situation cannot start the interface. We guess there must be a configuration file. The interface operation ultimately operates this configuration file, so we can find this configuration file. After research, we found that the directory where AndroidStudiod’s configuration file is stored is:

C:\Users\你的用户名\AppData\Roaming\Google\AndroidStudio2022.2

Then we find a disabled_plugins.txtfile, which is the configuration of disabled plug-ins. As long as we remove the disabled plug-ins from it. Then we open the configuration file and see the following content:
Insert image description here
Just delete the marked part in the picture and save it. Just start Android Studio again.

Guess you like

Origin blog.csdn.net/zxj2589/article/details/131669176