Forum Xamarin.Android

Xamarin.Android RemoteNotifications| Doesn't deploy onto device


I have tried the walk-through which gives info on how to create notification on android using Xamarin. LINK

I have got the NuGet packages restored and installed. Which are
1. Newtonsoft.Json
2. Xamarin.Android.Support.Compat
3. Xamarin.Android.Support.Core.UI
4. Xamarin.Android.Support.Core.Utils
5. Xamarin.Android.Support.Fragment
6. Xamarin.Android.Support.Media.Compat
7. Xamarin.Android.Support.v4
8. Xamarin.GooglePlayServices.Base
9. Xamarin.GooglePlayServices.Basement
10. Xamarin.GooglePlayServices.Gcm
11. Xamarin.GooglePlayServices.Iid
12. Xamarin.GooglePlayServices.Measurement
13. Xamarin.GooglePlayServices.Tasks

I have attached an image which has got all the references of Client App.

When I try to build and run the app I face this error,

"Android application is debugging.
The application could not be started. Ensure that the application has been installed to the target device and has a launchable activity (MainLauncher = true).

Additionally, check Build->Configuration Manager to ensure this project is set to Deploy for this configuration."

While there's MainLauncher=true on my MainActivity.cs and the config is set to Debug and Any CPU, I still get this error.

I have tried reinstalling NuGet packages, but the problem persists. Builds but doesn't deploy onto device.

Kindly help me with this.

Best Answer


Sign In or Register to comment.