小编Sun*_*apa的帖子

android:exported 需要为元素 <receiver#com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver> 显式指定

在调试模式下在 sdk gphone64 x86 64 上启动 lib\main.dart... lib\main.dart:1 C:\Users\lucks\OneDrive\Desktop\intern\android\app\src\debug\AndroidManifest.xml:15 :9-22:20 错误:需要为元素 <receiver#com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver> 显式指定 android:exported。android:exported当相应组件定义了意图过滤器时,面向 Android 12 及更高版本的应用需要指定显式值。有关详细信息,请参阅https://developer.android.com/guide/topics/manifest/activity-element#exported 。

失败:构建失败并出现异常。

  • 出了什么问题:任务“:app:processDebugMainManifest”执行失败。

清单合并失败:需要为元素 <receiver#com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver> 显式指定 android:exported。android:exported当相应组件定义了意图过滤器时,面向 Android 12 及更高版本的应用需要指定显式值。有关详细信息,请参阅https://developer.android.com/guide/topics/manifest/activity-element#exported 。

  • 尝试:

使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。

2 秒内构建失败异常:Gradle 任务 assembleDebug 失败,退出代码 1 已退出 (sigterm)

图像链接在这里 https://i.stack.imgur.com/bUkHi.png 我的清单中没有“flutterlocalnotifications”接收器。那么我在哪里添加这个明确的值???

android android-manifest flutter

9
推荐指数
1
解决办法
8721
查看次数

标签 统计

android ×1

android-manifest ×1

flutter ×1