5

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.

2
  • Try using Oracle JDK instead of OpenJDK Commented Jan 24, 2017 at 16:14
  • Tried switching to Oracle JDK. Unfortunately , still the same. Commented Jan 24, 2017 at 18:27

3 Answers 3

8

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

Sign up to request clarification or add additional context in comments.

2 Comments

For those wondering, those .AndroidStudio and .android directories should be in your home folder: cd ~
Deleting those directories worked for me: open a terminal, cd /home/yourname/ then rm .AndroidStudio -R and rm .android -R then open AS again.
0

Either the file <your_installation_path>/android-studio/lib/bootstrap.jar

does not exist or has the wrong ownership.

Because the installation is located in your home directory, execute the following command that will give your user ownership:

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

If that does not work, check if the file android-studio/lib/bootstrap.jar exists. If not, then download and extract the archive again.

Comments

0
It can be solved by deleting .idea and .gradle folders from your project root.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.