zoukankan      html  css  js  c++  java
  • Lint found fatal errors while assembling a release target问题的解决方案

    此问题发生在编译为 release 版本时,出现错误提示如下:

    Lint found fatal errors while assembling a release target.
    
    To proceed, either fix the issues identified by lint, or modify your build script as follows:
    ...
    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 {
        buildTypes {
            release {
                //在这里添加:
                lintOptions {
                    checkReleaseBuilds false
                    abortOnError false
                }
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
  • 相关阅读:
    如何快速取得股票交易历史数据
    ArcSDE性能优化系列之ArcSDE参数篇
    2020年8月29日
    2020年8月31日
    9.2
    2020年8月25日
    2020年8月30日
    2020年8月27日
    2020年8月26日
    2020年8月28日
  • 原文地址:https://www.cnblogs.com/ring1992/p/11313560.html
Copyright © 2011-2022 走看看