小编Sam*_*gal的帖子

6
推荐指数
2
解决办法
4364
查看次数

将 'tools:replace="android:label"' 添加到 AndroidManifest.xml:16:5-39:19 的 <application> 元素以覆盖

我收到此错误

错误:AndroidManifest.xml:18:9-45 中的属性 application@label value=(flutter_bloc_pattern) 也存在于 [:DynamsoftBarcodeReader] AndroidManifest.xml:13:9-41 value=(@string/app_name)。

构建失败并出现错误

 C:\Users\user\AndroidStudioProjects\Flutter Example\Flutter BLoC Pattern\android\app\src\main\AndroidManifest.xml:18:9-45 Error:
        Attribute application@label value=(flutter_bloc_pattern) from AndroidManifest.xml:18:9-45
        is also present at [:DynamsoftBarcodeReader] AndroidManifest.xml:13:9-41 value=(@string/app_name).
        Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:16:5-39:19 to override.

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:processDebugManifest'.
    > Manifest merger failed : Attribute application@label value=(flutter_bloc_pattern) from AndroidManifest.xml:18:9-45
        is also present at [:DynamsoftBarcodeReader] AndroidManifest.xml:13:9-41 value=(@string/app_name).
        Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:16:5-39:19 to override.

    * …
Run Code Online (Sandbox Code Playgroud)

android flutter

5
推荐指数
1
解决办法
5876
查看次数

标签 统计

flutter ×2

android ×1

flutter-layout ×1