Reputation: 2018
My laptop crashed while Android Studio was running. Now, When I tried to open project in Android Studio it gives me weird error and no project is opening.
Cannot load project: java.lang.RuntimeException: java.io.IOException: java.lang.AssertionError: Unexpected content storage modification"**
Edit: Also I'm in the welcome screen of Android Studio and have no access to Menu options to Invalidate Caches and restart Android Studio.
Upvotes: 4
Views: 13067
Reputation: 399
I found the same issue but I found a fix, and all it took was renaming/deleting the .AndroidStudio
hidden folder in Windows, under your home directory.
C:\Users\YOURUSERNAME.AndroidStudio
I renamed mine and I'm back up and running.
Upvotes: 1
Reputation: 5492
No guarantee this will work, but I have previously fixed a problem which is similar to this by invalidating the cache.
In Android Studio this is under File -> Invalidate Caches / Restart
Upvotes: 4
Reputation: 41
C\users\.Androidstudio
delete gradle.jar
and tryI got the same issue and this is related to IDE .
Android Studio has to do a fix.
Upvotes: 1
Reputation: 596
Configure -> Settings
.Compiler->Gradle
set VM Options to -Xmx512m
also because of that
It turns out it's a Windows 8 issue with the available virtual memory. It seems like a few new processes (like Superfetch) eat up a ton of processing power to constantly scan your drive for changes, so searching is faster.
The solution is to change the min and max virtual memory values. Here's how to do that:
http://windows.microsoft.com/en-us/windows/change-virtual-memory-size#1TC=windows-7
Upvotes: 0
Reputation: 187
For Android Studio 2.O follow these steps:
~/.android/cache
Hope this will help
Upvotes: 2
Reputation: 2018
I had really big issue as I was not able to open project in Android Studio. Every time I start Android Studio dialog box appear that says:
Cannot load project: java.lang.RuntimeException: java.io.IOException: java.lang.AssertionError: Unexpected content storage modification
I solved it by doing following steps:
home_dir/.AndroidStudio/system/cache
Upvotes: 22
Reputation: 638
I could solve this issue in android studio by selecting File-> Invalidate caches/Restart .
Upvotes: 0