You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

点击Firebase通知跳转指定页面时遇INSTALL_PARSE_FAILED_MANIFEST_MALFORMED错误

解决方案:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED 错误处理

错误核心原因:你的应用目标SDK为Android 12(API 31)及以上,系统要求所有带有Intent Filter的组件必须显式声明android:exported属性,而你使用的flutter_local_notifications插件中的ScheduledNotificationBootReceiver未满足该要求,导致安装解析失败。

解决步骤:

  • 升级flutter_local_notifications插件到最新稳定版
    打开项目根目录的pubspec.yaml,找到flutter_local_notifications依赖项,替换为最新版本号(如当前最新稳定版为16.1.0),然后执行命令:

    flutter pub get
    

    新版本插件已适配Android 12的exported属性要求,升级后通常可直接解决问题。

  • 若升级后问题仍存在,手动修改AndroidManifest.xml
    打开android/app/src/main/AndroidManifest.xml,找到包含com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver的<receiver>标签,添加android:exported="true"属性,修改后示例如下:

    <receiver
        android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED"/>
            <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
        </intent-filter>
    </receiver>
    

完成上述操作后,重新打包安装应用即可。

内容的提问来源于stack exchange,提问作者whatwhatwhat

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.30 06:44:59