Android Studio: "Error: could not find or load the main class"

I have been using Android Studio for a couple of weeks without any problems. But recently, I started getting this error when I try to open Android Studio. I am using Ubuntu 16.10.

Tools/android-studio/bin$ ./studio.sh
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
Error: Could not find or load main class #

What am I doing wrong? I tried re-extracting Android studio again. Nonetheless.

+4
source share
2 answers

Some of your Android Studio configuration files are probably corrupted. To fix this, delete .android .AndroidStudio(it may have a version number, for example .AndroidStudio2.3/). To save time for beginners, they can be directories and can be deleted using

rm -rf ~/.AndroidStudio*
rm -rf ~/.android*

PS: , , . .

+7

<your_installation_path>/android-studio/lib/bootstrap.jar

.

, , :

sudo chown -R $USER:$USER <your_installation_path>/android-studio/

, , android-studio/lib/bootstrap.jar. , .

0

Source: https://habr.com/ru/post/1667479/


All Articles