包安装程序我收到此错误,在其他包中给出了此错误
错误无法安装包'Xamarin.GooglePlayServices.Ads 60.1142.0'.您正在尝试将此软件包安装到以".NETPortable,Version = v4.5,Profile = Profile259"为目标的项目中,但该软件包不包含与该框架兼容的任何程序集引用或内容文件.有关更多信息,请与软件包作者联系.
我正在开发一个Android / iOS / UWP Xamarin.Forms应用程序。最近几周,我主要研究Android / iOS应用程序。现在,我想再次在UWP中启动我的应用程序并得到错误消息:
System.TypeLoadException
HResult=0x80131522
Message=Could not find Windows Runtime type 'Microsoft.Graphics.Canvas.UI.Xaml.CanvasImageSource'.
Source=Xamarin.Forms.Platform.UAP
StackTrace:
at Xamarin.Forms.Platform.UWP.ImageRenderer.GetDesiredSize(Double widthConstraint, Double heightConstraint)
at Xamarin.Forms.Platform.UWP.Platform.GetNativeSize(VisualElement element, Double widthConstraint, Double heightConstraint)
at Xamarin.Forms.Platform.UWP.WindowsBasePlatformServices.GetNativeSize(VisualElement view, Double widthConstraint, Double heightConstraint)
at Xamarin.Forms.VisualElement.OnSizeRequest(Double widthConstraint, Double heightConstraint)
at Xamarin.Forms.Image.OnSizeRequest(Double widthConstraint, Double heightConstraint)
at Xamarin.Forms.VisualElement.OnMeasure(Double widthConstraint, Double heightConstraint)
at Xamarin.Forms.VisualElement.GetSizeRequest(Double widthConstraint, Double heightConstraint)
at Xamarin.Forms.VisualElement.Measure(Double widthConstraint, Double heightConstraint, MeasureFlags flags)
at Xamarin.Forms.StackLayout.CalculateNaiveLayout(LayoutInformation layout, StackOrientation orientation, Double x, Double y, Double widthConstraint, Double heightConstraint)
at Xamarin.Forms.StackLayout.CalculateLayout(LayoutInformation …Run Code Online (Sandbox Code Playgroud) 这是一个字符串: -A -P -O
现在我们有相同的但是在另一个顺序: -P -A -O
检测这两个字符串是否相同的最佳方法是什么?
我在使用编码的教程时遇到了问题.
目标是检查数组中是否int存在int.
问题是,教程有这个要求:
该解决方案在合理的时间内工作,有100万件物品
我尝试了许多不同的方法,如LINQ,Dictionary二进制搜索,指数搜索和其他一些方法,但仍然失败了.
谁能告诉我解决这个问题的最快方法?