Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Project Files Messed Up

My Android project files just got all messed up after I put a duplicate of the project under the same folder. As java files having xml contents and other formats I don't know, and so do xml files and gradle files. The files just got mixed and messed up randomly. cannot load settings from file had once showed as warning, so I deleted the two files that it indicated. Not sure if it caused this issue. How can I fix the project?

This is my MainActivity.java

<component name="libraryTable">
  <library name="Gradle: com.android.support.test.espresso:espresso-idling-resource:3.0.2@aar">
    <CLASSES>
      <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/7925882b975de0e9c05ac44b0a44095f/jars/classes.jar!/" />
      <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/7925882b975de0e9c05ac44b0a44095f/res" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.support.test.espresso/espresso-idling-resource/3.0.2/6071e2b310c16836ba475a94df377e2f75928546/espresso-idling-resource-3.0.2-sources.jar!/" />
    </SOURCES>
  </library>
</component>
like image 730
Jerry Chen Avatar asked Mar 04 '23 13:03

Jerry Chen


2 Answers

go to C:\Users\username\.AndroidStudio3.4\system\caches and delete the caches then restart android studio again

like image 96
Aayush Singh Avatar answered Mar 06 '23 04:03

Aayush Singh


First Try Invalidate Caches And Restart If that not works, Then Do the following

Delete .idea and .gradle folder from your project directory And .iml files from your project directory then restart android studio

like image 35
AgentP Avatar answered Mar 06 '23 03:03

AgentP