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>
go to C:\Users\username\.AndroidStudio3.4\system\caches and delete the caches then restart android studio again
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With