Today I was really miserable by this mistake. I have been tossing for several hours. No matter how I build and clean, I can’t run. There are also methods on the Internet. No matter how I try, I can’t run. I’m crying without tears.
The last violent solution: delete the two files ending with *.iml in the project and ending with *.iml in the app module, and then I copied these two files from other projects, and finally it started running, I don’t know why As a result, fortunately, I can start to run and start working. I hereby share it with people who have encountered this error like me.