Gradle build is stricter that Eclipse ADT (e.g. Found item _ more than one time)

前提是你 提交于 2019-12-04 19:05:46

OK, finally there is Lint configuration. So the reason of errors was that Lint is enabled by default for release build (and gradle makes debug and release 2 builds by default)

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
    }
}

or use gradle assembleDebug debug build only.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!