Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Getting Started with Android Setting Up an Android Development Environment for Windows

Error message when trying to open Android Studio.

The error says "Update Failed" and then a long stretch of code, which I have pasted below. I installed the JDK as shown and added the variable ... I've never used Android Studio on this system before, Any help to get this running would be appreciated.


Internal error. Please report to http://code.google.com/p/android/issues

java.lang.NoClassDefFoundError: com/intellij/openapi/util/io/FileUtilRt at com.intellij.idea.Main.installPatch(Main.java:142) at com.intellij.idea.Main.main(Main.java:72) Caused by: java.lang.ClassNotFoundException: com.intellij.openapi.util.io.FileUtilRt at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 2 more

2015-07-15 22:46:43 Exception: java.lang.NoClassDefFoundError: com/intellij/openapi/util/io/FileUtilRt

2 Answers

Harry James
Harry James
14,780 Points

Hey Robert!

It looks like you have a corrupted installation file - completely uninstall Android Studio and download it again from the website.

Install the newly downloaded version of Android Studio on your system - the one you had previously downloaded is likely corrupt.

Here are the instructions to uninstall Android Studio completely. Note that some files may be located in a different location depending on where you chose to install and the versions you've been using so if something is not in its normal place, please let me know.

Please follow all of the steps below in order.

Run the uninstaller

The first step is to run the uninstaller. Open Control Panel by accessing it from the menu when you right-click the Start Button (This applies for Windows 8 systems). Then, under Programs, select Uninstall a Program. After that, click on Android Studio and press Uninstall. If you have multiple versions, uninstall them as well.

After you have uninstalled Android Studio, it is recommended that you restart before proceeding with the steps below.

Remove the Android Studio files

To delete any remains of Android Studio setting files, in Windows Explorer (The file browser in Windows), type this as the File Path:


Replacing [YOUR WINDOWS USERNAME] with the username of your account on Windows. If you don't know your username, navigate to C:\Users and it will list all users on the system.

Here, delete .android, .AndroidStudio and any versions of this directory with versions on the end, .gradle and .m2.

Then, go to

C:\Users\Harry\[YOUR WINDOWS USERNAME]\Roaming

and delete the JetBrains directory.

Finally, go to

C:\Program Files

and delete the Android directory.

Remove the SDK

To delete any remains of the SDK, in Windows Explorer, type this in as the File Path:


Here, delete the Android directory.

(Optional) Delete all previous projects

If you want to delete any of your previous projects, the directory where your projects are found is the AndroidStudioProjects directory. It is located in your root user file, C:\Users\[YOUR WINDOWS USERNAME]\.

Hopefully this will now have deleted the Android Studio files and you can now try reinstalling the tools.

If you have any problems doing so, give me a shout :)

Thank you, that worked and I have it running now!