美文网首页
flutter Android studio 打包应用程序出现

flutter Android studio 打包应用程序出现

作者: 殇城阡陌 | 来源:发表于2020-11-03 15:48 被阅读0次

    AS打包点击assembleRelease 的时候会提示:

    注:某些输入文件使用或覆盖了已过时的API。

    注:有关详细信息, 请使用 -Xlint:deprecation重新编译。

    注:某些输入文件使用了未经检查或不安全的操作。

    注:有关详细信息, 请使用 -Xlint:unchecked重新编译。

    在build.gradle中添加如下配置:

    android {

        ...

        allprojects {

            gradle.projectsEvaluated {

                tasks.withType(JavaCompile) {

                    options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"

                }

            }

        }

        ...

    }

    重新编译就好了

    相关文章

      网友评论

          本文标题:flutter Android studio 打包应用程序出现

          本文链接:https://www.haomeiwen.com/subject/kptivktx.html