Skip to content

add 'tools:replace="android:exported"' to <receiver> element at AndroidManifest.xml:120:9-139:20 to override. #142

@jishaofeng89

Description

@jishaofeng89

我在项目中引用了jpush和jmessage的插件,引起如下冲突:

/Users/administrator/VSCodeProjects/kiss_you_new/android/app/src/debug/AndroidManifest.xml:123:13-36 Error:
Attribute receiver#cn.jpush.android.service.PushReceiver@exported value=(true) from [cn.jiguang.sdk:jpush:4.2.8] AndroidManifest.xml:123:13-36
is also present at [cn.jiguang.sdk:jmessage:2.9.2] AndroidManifest.xml:48:13-37 value=(false).
Suggestion: add 'tools:replace="android:exported"' to element at AndroidManifest.xml:120:9-139:20 to override.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugMainManifest'.

Manifest merger failed : Attribute receiver#cn.jpush.android.service.PushReceiver@exported value=(true) from [cn.jiguang.sdk:jpush:4.2.8] AndroidManifest.xml:123:13-36
is also present at [cn.jiguang.sdk:jmessage:2.9.2] AndroidManifest.xml:48:13-37 value=(false).
Suggestion: add 'tools:replace="android:exported"' to element at AndroidManifest.xml:120:9-139:20 to override.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 1s

引入的插件:

jmessage_flutter: ^2.1.6
jpush_flutter: ^2.1.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions