如何删除或更新自定义皮棉

时间:2020-02-17 05:29:13

标签: android lint

当我编写一个自定义的lint并将其应用于我的项目时,我发现它可以在计算机上的所有项目上运行。所以我想删除它,但是当我仅在Gradle中删除<HierarchicalDataTemplate DataType="{x:Type local:Manufacturer}" ItemsSource="{Binding Path=Models}"> <TextBlock> <TextBlock.Text> <MultiBinding StringFormat="{}{0} &lt;from: {1}&gt;"> <Binding Path="Name" /> <Binding Path="HeadQuarters" /> </MultiBinding> </TextBlock.Text> </TextBlock> </HierarchicalDataTemplate> <HierarchicalDataTemplate DataType="{x:Type local:Model}" ItemsSource="{Binding Path=Variants}"> <TextBlock> <TextBlock.Text> <MultiBinding StringFormat="{}{0} costs {1}"> <Binding Path="Name" /> <Binding Path="Price" /> </MultiBinding> </TextBlock.Text> <TextBlock.Style> <Style TargetType="TextBlock"> <Style.Triggers> <DataTrigger Binding="{Binding IsNew}" Value="true"> <Setter Property="Foreground" Value="Green"/> </DataTrigger> </Style.Triggers> </Style> </TextBlock.Style> </TextBlock> </HierarchicalDataTemplate> <DataTemplate DataType="{x:Type local:Variant}"> <TextBlock Text="{Binding Name}"/> </DataTemplate> 时它不起作用。另外,当我在自定义皮棉中修改某些代码时,它不起作用。它始终在初稿中起作用。我该如何解决?

Ps:android studio 3.6 Beta 3,public class Manufacturer { public string Name { get; set; } public string HeadQuarters { get; set; } public List<Model> Models { get; set; } } public class Model { public string Name { get; set; } public string Price { get; set; } public bool IsNew { get; set; } public List<Variant> Variants { get; set; } } public class Variant { public string Name { get; set; } public string FuelType { get; set; } } lintChecks project(":lint")gradle-5.6.1

0 个答案:

没有答案