小编Adn*_*tar的帖子

出现错误:任务“:app:lintVitalRelease”执行失败

为什么在 Kotlin 中生成签名的 Apk 时出现此错误?有知道解决办法的朋友请回复。

日志猫错误:

Execution failed for task ':app:lintVitalRelease'.
Lint found fatal errors while assembling a release target.
Run Code Online (Sandbox Code Playgroud)

我正在添加 build.gradle 文件。我不知道我的代码有什么问题,所以请任何知道解决方案的人回答。 构建.gradle

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

apply plugin: 'kotlin-kapt'

android {
    compileSdkVersion 29
    defaultConfig {
        applicationId "com.testing.app"
        minSdkVersion 21
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.android.support:appcompat-v7:27.1.1' …
Run Code Online (Sandbox Code Playgroud)

android build gradle kotlin android-studio

4
推荐指数
1
解决办法
7074
查看次数

标签 统计

android ×1

android-studio ×1

build ×1

gradle ×1

kotlin ×1