Fix Android Studio Corrupted Project Workspace Settings

后端 未结 18 2728
感情败类
感情败类 2020-12-13 12:18

I had this problem for a while and was able to solve it myself.

If in opening your project in Android Studio and something similar to this error message pops up:

相关标签:
18条回答
  • 2020-12-13 12:42

    I have encountered similar problem many times, and there just one thing that can be done to solve this.

    Just delete idea folder.

    0 讨论(0)
  • 2020-12-13 12:42

    Sorry for delay response, I also came across this scenario, so tried to resolve it using many way available on internet which include

    1. invalidate cache and restart
    2. restart android studio
    3. deleting *.iml file
    4. restart system

    The only solution worked for me is, I export my project into zip format and then I open it from there. The project open and build successfully without any problem.

    I hope this will help for you.

    0 讨论(0)
  • 2020-12-13 12:43

    I have encountered similar problem many times, and there just one thing that can be done to solve this.

    step 1 : delete the .xml files containing error, or cut and paste to some backup folder if you want to inspect that file later on. However, it's unlikely that you'd find anything.

    step 2 : try to open android studio after having deleted those files, it must be running perfect. if it doesn't and still contains errors try 'invalidate catches and restart' option in file menu.

    0 讨论(0)
  • 2020-12-13 12:44

    in Terminal navigate to your project directory, and run these

    rm -rf .idea
    rm *.iml
    

    then go into your app directory and do that same thing as above.

    Finally, "File" -> "New" -> "Import", this should solve the corruption.

    0 讨论(0)
  • 2020-12-13 12:48

    I guess the problems depends on each situation. I was using Flutter in Android Studio and suddenly one day this problem occurred.

    Just delete the project_name.iml in Flutter project and project_name_android.iml in android module.

    For android projects simply delete .iml file in the project.

    After deleting restart Android Studio and follow the steps as in this video. It was of great help.

    0 讨论(0)
  • 2020-12-13 12:52

    In my case it was iml file which was corrupted, so i deleted it, restarted android studio, pasted the same file as it was before, restarted android studio and everything was working fine.

    0 讨论(0)
提交回复
热议问题