Use Xamarin.Forms + Visual Studio 2015 and add Google Cloud Messaging Client components , when build the .Drod project then get some warning messages and publish to device and emulator will be fail .
Xamarin.Forms v2.3.2.127 Visual Studio 2015 update Xamarin for stable last version
warning messages :
Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: ...........
case redo steps :
(1) create new Xamarin.Forms (PCL)
(2) .Drod project Add Google Cloud Messaging Client components
(3) build project
I try modify .Droid project app.config , but still fail
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.ObjectModel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0"/>
</dependentAssembly>
</assemblyBinding>
They are just warnings, so they should not be the root cause of the publishing failure.
Using Google Cloud Messaging (GCM) in the past I ran into a similar problem and it was caused by the fact that my application package name starts with an uppercase letter.
see the following note in the xamarin GCM documentation
It is VERY important that your application's package name does NOT start with an uppercase letter. This will cause an error in deploying your application to a simulator or device.
https://components.xamarin.com/gettingstarted/googleplayservices-gcm
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.