【问题标题】:Error display where generate singed APK from android studio错误显示从 android studio 生成签名 APK 的位置
【发布时间】:2019-02-11 14:42:03
【问题描述】:

Lint 在组装发布目标时发现致命错误。

要继续,请修复 lint 确定的问题,或按如下方式修改构建脚本:

android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
}

【问题讨论】:

标签: android apk


【解决方案1】:

在 android {} 中更改 build.gradle 文件,如下所示

    android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.xxx"
        minSdkVersion 15
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- 
           rules.pro'
        }
    }
    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }

}

【讨论】:

  • 虽然这会使错误消失,但 lint 错误通常表明应用程序有问题,应该首先尝试修复导致 lint 错误出现的错误。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-08-10
  • 2013-12-14
  • 2023-04-01
  • 2023-04-06
  • 1970-01-01
相关资源
最近更新 更多