How can I fix this error. MainActivity class already in my project. Here's a screenshot of the error
I tried this link, but it didn't work for me
How can I fix this error. MainActivity class already in my project. Here's a screenshot of the error
I tried this link, but it didn't work for me
I got this error as well. For me it helped to set minifyEnabled to false for my debug version. After Clean Build it launched again.
It may be silly but make sure you have enough storage on your phone. This was the problem for me
I have faced this problem when I tried to build & run on real device Android 8.1, API 27. Saw this and this answers, but they didn't helped.
Solution: Then, tried to run on emulator Android 7.1 API 25, everything went fine. Hope this will help others.
This suddenly happened to me today. After trying several other potential solutions, nothing worked. I then looked in the app configuration and noticed that the Installable Options: Deploy method had been set to "APK from app bundle" instead of "Default APK". Setting it back to "Default APK" fixed the issue for me. I hope this helps someone :-)