jmessage-flutter-plugin
jmessage-flutter-plugin copied to clipboard
add 'tools:replace="android:exported"' to <receiver> element at AndroidManifest.xml:120:9-139:20 to override.
我在项目中引用了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
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