Cannot load project: Android Studio

My laptop crashed while running Android Studio. Now, when I tried to open the project in Android Studio, it brings me a strange error, and the project does not open.

Unable to load project: java.lang.RuntimeException: java.io.IOException: java.lang.AssertionError: Unexpected content store modification "**

Edit: I am also on the Android Studio welcome screen and do not have access to the menu options to make Invalidate Caches and restart Android Studio.

+6
source share
7 answers

I had a really big problem since I was unable to open the project in Android Studio. Every time I launch the Android Studio dialog, it says:

Unable to load project: java.lang.RuntimeException: java.io.IOException: java.lang.AssertionError: Unexpected content store modification

I solved this by following these steps:

  • Close Android Studio
  • Go to home_dir/.AndroidStudio/system/cache directory
  • Delete all files in the cache directory.
  • Then restart IntelliJ
+23
source

For Android Studio 2.O, follow these steps:

  • Close Android Studio
  • Go to ~/.android/cache
  • Delete Content
  • Restart android studio

Hope this helps

+2
source

I found the same problem, but found a fix, and all that is needed is renaming / deleting the hidden .AndroidStudio folder on Windows under the home directory.

C: \ Users \ YOURUSERNAME.AndroidStudio

I renamed mine and I'm working again.

+1
source

There is no guarantee that this will work, but I previously fixed a problem that is similar to this with an invalid cache.

In Android Studio, this is under File -> Invalidate Caches / Restart

+1
source
  • In C\users\.Androidstudio remove gradle.jar and try
  • Backup jars before proceeding.

I have the same problem and this is due to the IDE.

Android Studio must complete the fix.

+1
source
  • Launch Android Studio, close any open project.
  • On the right side, click Configure -> Settings .
  • On the left side in Compiler->Gradle set the VM options to -Xmx512m
  • Click OK, then create the project. Worked for me.

also because of this

Turns out this is a Windows 8 issue with available virtual memory. It seems that several new processes (like Superfetch) are eating up a ton of processing power to constantly scan your disk for changes, so the search is faster.

The solution is to change the values โ€‹โ€‹of virtual memory min and max. Here's how to do it:

http://windows.microsoft.com/en-us/windows/change-virtual-memory-size#1TC=windows-7

0
source

I could solve this problem in android studio by choosing File-> Invalidate cache / Restart.

0
source

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


All Articles