flutter——android报错建议Suggestion: add 'tools:replace="android:label"'

问题:

安装了一个新包,android出现了报错,建议add 'tools:replace="android:label"'。

原因:

项目application的label属性冲突导致

解决办法:

在android/app/src/main/AndroidManifest.xml文件中添加

<application
        ......
        ......
     // 添加下面两行 xmlns:tools
="http://schemas.android.com/tools" tools:replace="label" ...... ...... > ............ ............ </application>

 

END-------------------

火车驶向云外,梦安魂于九霄

 

posted @ 2020-10-20 20:21  麦豇豆  阅读(1391)  评论(0编辑  收藏  举报