当我尝试从NuGet安装更新时,在Xamarin网站的全新安装的VS 2017上,我收到此错误。任何人都知道如何安装此更新?总共有9个更新......它们都失败了。
Severity Code Description Project File Line Suppression State
Error Unable to resolve dependencies. 'Xamarin.Android.Support.Design 25.3.1'
is not compatible with 'Xamarin.Forms 2.3.4.247 constraint:
Xamarin.Android.Support.Design (= 23.3.0)'.
答案 0 :(得分:1)
如果查看依赖项,您会看到只有Xamarin.Android.Support.Design >= 23.3.0
允许Target Framework Version / Compile With Version
:
<强>依赖关系强>
MonoAndroid 1.0
Xamarin.Android.Support.Design(= 23.3.0)
Xamarin.Android.Support.v4(= 23.3.0)
Xamarin.Android.Support.v7.AppCompat(= 23.3.0)
Xamarin.Android.Support.v7.CardView(= 23.3.0)
Xamarin.Android.Support.v7.MediaRouter(= 23.3.0)
MonoAndroid 7.0
Xamarin.Android.Support.Design(&gt; = 23.3.0)
Xamarin.Android.Support.v4(&gt; = 23.3.0)
Xamarin.Android.Support.v7.AppCompat(&gt; = 23.3.0)
Xamarin.Android.Support.v7.CardView(&gt; = 23.3.0)
Xamarin.Android.Support.v7.MediaRouter(&gt; = 23.3.0)
https://www.nuget.org/packages/Xamarin.Forms/
因此,您应确保@BenchmarkMode(Mode.Throughput)
@Fork(1)
@State(Scope.Thread)
@Warmup(iterations = 10, time = 1, timeUnit = TimeUnit.SECONDS, batchSize = 1000)
@Measurement(iterations = 40, time = 1, timeUnit = TimeUnit.SECONDS, batchSize = 1000)
public class Chaining {
private String a1 = "111111111111111111111111";
private String a2 = "222222222222222222222222";
private String a3 = "333333333333333333333333";
@Benchmark
public String typicalChaining() {
return new StringBuilder().append(a1).append(a2).append(a3).toString();
}
@Benchmark
public String noChaining() {
StringBuilder sb = new StringBuilder();
sb.append(a1);
sb.append(a2);
sb.append(a3);
return sb.toString();
}
}
为7.0或更高。