Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jishaofeng89 opened this issue Sep 12, 2021 · 0 comments

Comments

@jishaofeng89
Copy link

我在项目中引用了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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant