Sounds like MainActivity wasn’t included in the source directories.
Without further information, I can’t help you. Please read Reporting issues and provide all information mentioned there, including detailled steps to reproduce the issue and verbose logs.