-1
Severity    Code    Description Project File    Line    Suppression State
Error       ADB0010: Unexpected install output: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl969954024.tmp/base.apk (at Binary XML file line #83): Bad class name xx.Droid.permission.C2D_MESSAGE in package xx.Droid] at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in E:\A\_work\275\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:line 345
   at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.<InstallPackage>b__0(Task`1 t) in E:\A\_work\275\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 753
   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()         0   
Md. Asaduzzaman
  • 14,963
  • 2
  • 34
  • 46

3 Answers3

0

From April, 2019, google has shut down GCM (Google Cloud Messaging) support. So I strongly recommend that you should migrate your code to FCM (Firebase Cloud Messaging).

Md. Asaduzzaman
  • 14,963
  • 2
  • 34
  • 46
0

You've not provided sufficient data. Check your package name again or another silly mistake while adding permission.

Go through this ,it will be helpful:

C2DM: How to use C2D_MESSAGE permission?

bhavya joshi
  • 1,096
  • 10
  • 20
0

the FCM library automatically injects the C2D_MESSAGE permission into the generated manifest, with your package name as a prefix.Some mobile phone brands don't accept the uppercase letters.

you could add a Target to your .csproj to fix things up. Note that you need to change the msbuild property PatchedC2dPermissionName to have the appropriate value with your package name in lowercase letters in it

you could refer to C2D_MESSAGE Issue and FixPermission

Leo Zhu
  • 15,726
  • 1
  • 7
  • 23