Xamarin SuppressLint属性错误

时间:2017-05-18 18:48:25

标签: c# xamarin xamarin.android

我尝试在Xamarin中转换suppress lint属性。

我通过c#中的活动将@SuppressLint("NewApi")转换为[SuppressLint(Value = new[] { "NewApi" })]。但是当我编译时,我遇到了这个错误而且我不知道如何修复它。我谷歌很多,但没有找到答案:

error: '.class' expected
value = Mono.Cecil.CustomAttributeArgument[])

0 个答案:

没有答案