Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio : "Error: Could not find or load main class"

I've been using Android Studio for around a couple of weeks without any issues so far. But recently , I've started getting this error when I try to open Android Studio. I use 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've tried re-extracting android studio again. Still the same.

like image 748
paiakshay998 Avatar asked Jan 04 '23 16:01

paiakshay998


1 Answers

Some of your android studio configuration files are probably messed up. To fix this delete .android .AndroidStudio (might have a version number eg. .AndroidStudio2.3/). To save time for beginners, they maybe directories and can to deleted using

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

PS: It makes sense to have a backup of every configuration file your use using a version control. saves me time and energy. Based on this

like image 62
null Avatar answered Jan 22 '23 06:01

null