Search code examples
xamarinxamarin-studio

New android solution issue, MainActivity.cs not found


I tried to create an android solution using Xamarin studio but it always show me "MainActivity.cs not found!" error.I re-installed the software and the same issue appears. This error occurs when I try to create a new "Android application" Solution. After goggling it seems that my Xamarin.Android installation is not complete\corrupt but I am unable to get an installation link for it on the website. can any one help me in this ?

enter image description here


Solution

  • I finally got this to work by

    1. uninstalling everything,
    2. turning off antivirus,
    3. running the "recommended" Xamarin installer as an administrator
    4. restarting my PC.

    Hope this helps someone.