OpenFlutter / nautilus

阿里百川电商Flutter插件。
Apache License 2.0
130 stars 28 forks source link

在项目里面引入后,安卓启动不了 #1

Closed webmaster404 closed 5 years ago

webmaster404 commented 5 years ago

错误信息:

版本:nautilus: ^0.0.6 在yaml注释之后,项目就可以正常运行

JarvanMo commented 5 years ago

@luganhuo 参看:AndroidManifest.xml

tools:replace="android:label"
funengqing commented 5 years ago

按如下处理可解决这个问题

  1. 在manifest节点加上:xmlns:tools="http://schemas.android.com/tools‘’
  2. 在application 节点加上:android:label="项目的名字"
  3. 在application 节点加上:tools:replace="android:label"

最终的AndroidManifest.xml如下: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="你的包名" xmlns:tools="http://schemas.android.com/tools">

<application android:label="项目的名字" tools:replace="android:label"