任务lintVital崩溃与AS 3.0 Beta 1

时间:2017-08-10 09:28:44

标签: android android-studio apk lint android-studio-3.0

自从我更新到Android Studio 3.0 Beta 1后,当我生成签名APK时,任务<ListView x:Name="list" Margin="0,0,0,0" SelectionChanged="list_SelectionChanged" VerticalAlignment="Top"> <ListView.Resources> <DataTemplate x:Key="myCell"> <Border BorderBrush="Gray" BorderThickness="0,0,0,0" > <Grid Margin="0" x:Name="tryadpative" > <Grid.RowDefinitions> <RowDefinition Height="8*" /> <RowDefinition Height="1*" /> <RowDefinition Height="1*" /> </Grid.RowDefinitions> <Image x:Name="prodimg" Width="auto" Source="{Binding prodimg}" Grid.Row="0"></Image> <TextBlock x:Name="productcode" TextWrapping="Wrap" Text="{Binding productcode}" HorizontalAlignment="Center" Width="auto" FontSize="12" Grid.Row="1" Foreground="Gray"/> <TextBlock x:Name="productname" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Bottom" Foreground="Gray" Grid.Row="0" Text="{Binding productname}" /> <TextBlock x:Name="productmindec" TextWrapping="Wrap" HorizontalAlignment="Center" Text="{Binding productmindec}" Width="auto" FontSize="14" Grid.Row="2" Foreground="Gray"/> <!--<Image x:Name="prodimg" Width="auto" Source="{Binding prodimg}" Grid.Row="0"></Image> <TextBlock x:Name="productcode" TextWrapping="Wrap" Text="{Binding productcode}" Width="auto" FontSize="12" Foreground="Gray"/> <TextBlock x:Name="productname" FontSize="14" Foreground="Gray" Text="{Binding productname}" /> <TextBlock x:Name="productmindec" TextWrapping="Wrap" Text="{Binding productmindec}" Width="auto" FontSize="14" Foreground="Gray"/>--> </Grid> </Border> </DataTemplate> </ListView.Resources> <!--<ListView.ItemContainerStyle> <Style TargetType="ListViewItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch" /> </Style> </ListView.ItemContainerStyle>--> <ListView.ItemTemplate> <StaticResource ResourceKey="myCell"/> </ListView.ItemTemplate> </ListView> lintVital一起崩溃。
一切都适用于Android Studio 3.0 Canary 9

我已经尝试过:

  • clean build
  • 重启并无效
  • 删除Gradle(java.lang.NullPointerException (no error message)~/.gradle
  • 的所有文件

使用PROJECT/.gradle

进行记录
--stacktrace --debug

1 个答案:

答案 0 :(得分:2)

编辑 Android Studio 3.0 Beta 2

修复了此错误

我发现了一个解决方法(但它是暂时的......)。在gradle.build文件中:

android {
    ...
    defaultConfig {
        ...
        lintOptions {
            ...
            // Caution!! This will disable lint vital lint check...
            checkReleaseBuilds false
        }
    }
    ...
}