【问题标题】:Element receiver#nl.xservices.plugins.ShareChooserPendingIntent at AndroidManifest.xml:36:9-40 duplicated with element declared at AndroidManifest.xmlAndroidManifest.xml:36:9-40 中的元素接收器#nl.xservices.plugins.ShareChooserPendingIntent 与在 AndroidManifest.xml 中声明的元素重复
【发布时间】:2023-02-10 18:51:09
【问题描述】:

AndroidManifest.xml:36:9-40:20 中的元素接收器#nl.xservices.plugins.ShareChooserPendingIntent 与在 AndroidManifest.xml:12:9-16:20 中声明的元素重复

当我在 Android Studio 中生成 Signed Bundle 时,请帮助我,任何人......

【问题讨论】:

    标签: android android-studio android-manifest


    【解决方案1】:

    如果你的项目是 Cordova 项目,你必须更新插件 cordova-plugin-x-socialsharing。 运行这个脚本:

    cordova plugin remove cordova-plugin-x-socialsharing
    cordova plugin add cordova-plugin-x-socialsharing
    

    尝试再次构建您的项目。希望能帮助到你。

    【讨论】:

      【解决方案2】:

      根据他们是否正确更新了库,您可以将行 android:exported="true" 添加到清单文件中。有时库在版本发布时更新缓慢。

      这与迁移到 Android 12 和 API 版本 31 有关。https://developer.android.com/guide/topics/manifest/activity-element#exported

      查看与这部分迁移有关的所有问题的一种简单方法是使用此答案中的合并清单。

      You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without the 'an

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2019-02-12
        • 1970-01-01
        • 1970-01-01
        • 2020-10-30
        • 1970-01-01
        • 2017-03-04
        • 1970-01-01
        相关资源
        最近更新 更多