locked
No Launchable activity found dialog when deploying app. RRS feed

  • Question

  • User228717 posted

    I am stuck with this error and have no idea what to do. Whenever I am deploying my Xamarin.Forms app to any android device I get this dialog and app doesn't load. I have even written "MainLauncher = true" in my MainActivity.cs class. Its very annoying. Any help will be highly appreciated.

    Friday, June 10, 2016 11:47 AM

Answers

  • User228717 posted

    I deleted the bin and obj folders in Xamarin.Droid. It solved my problem.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Sunday, June 19, 2016 5:13 AM

All replies

  • User167645 posted

    I meet the same case. How have you solved this?

    Saturday, June 18, 2016 2:19 PM
  • User228717 posted

    I deleted the bin and obj folders in Xamarin.Droid. It solved my problem.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Sunday, June 19, 2016 5:13 AM
  • User227938 posted
    1. check MainLauncher = true properties added in Activity or not if still your get check number of activities it have MainLauncher = true and select one of them and run.

    Example:

    namespace FavoriteAddresses.Droid { [Activity( Label = "Favorite Addressess" , MainLauncher = true , NoHistory = true , ScreenOrientation = ScreenOrientation.Portrait)] public class SpashScreen: MvxSplashScreenActivity,App> { public SpashScreen() : base(Resource.Layout.SplashScreen) {

        }
    }
    

    }

    Friday, September 6, 2019 12:39 PM