Reputation: 300
I'm using Visual Studio 2019 version 16.3.2, on windows 10, and having a fairly complicated issue.
Even though MainLauncher is set as follows:
[Activity(Label = "AppName", Icon = "@drawable/Icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity {...}
I get this error when starting a debugging session:
No Launchable Activity: This project does not contain any activities marked MainLauncher. It has been deployed to the device, but no activity will be launched. To mark an activity as launchable, add the [Activity] attribute to it with MainLauncher = true: [Activity (MainLauncher = true)] public class MyActivity : Activity
Based on previous fixes (naming issue, deleting files), I deleted bin and obj folders in Visual studio, checked naming issues, clean/rebuild, restart visual studio, and then start debugging, but the error still occurs. Also, the app is not installed on the target device/simulator in either debug or release after the "Deploy Succeeded".
See this post for more details regarding before the updates were installed and this no launch-able activity issue occurs. (note that on this configuration, the app IS installed on the target device, however it crashes. The only thing that has changed since the release to production, is the Visual Studio Updates have been installed.)
Any ideas?
Upvotes: 1
Views: 933
Reputation: 300
resolved by Steema.
It was an issue with the libraries installed. Xamarin.Forms made changes that bricked the library; after they updated it, it worked fine.
Upvotes: 0