flutter 集成推送失败,告急!!!!【要哭了!】
我使用 flutter 进行开发,根据文档集成了 插件** jpush_flutter**
操作步骤按照 这个 文档进行操作 https://github.com/jpush/jpush-flutter-plugin
但是,内容加载完后, 提示如下 :
Attribute receiver#cn.jpush.android.service.PushReceiver@exported value=(true) from [cn.jiguang.sdk:jpush-google:4.5.0] AndroidManifest.xml:114:13-36
is also present at [cn.jiguang.sdk:jpush:4.4.5] AndroidManifest.xml:122:13-37 value=(false).
Suggestion: add 'tools:replace="android:exported"' to element at AndroidManifest.xml:111:9-129:20 to override.
这意思是让我 添加 'tools:replace="android:exported"' 到 AndroidManifest.xml,立马添加:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:replace="android:exported"
>运行结果 :replace specified at line:1 for attribute android:exported, but no new value specified
看样子是没有值替换, 那就添加值 ,添加后是这样的:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:replace="android:exported"
android:exported="true"
>运行! 运行! 运行! run ! run! run! go! go! go! 可结果 还是 :
Attribute receiver#cn.jpush.android.service.PushReceiver@exported value=(true) from [cn.jiguang.sdk:jpush-google:4.5.0] AndroidManifest.xml:114:13-36
is also present at [cn.jiguang.sdk:jpush:4.4.5] AndroidManifest.xml:122:13-37 value=(false).
Suggestion: add 'tools:replace="android:exported"' to <receiver> element at AndroidManifest.xml:111:9-129:20 to override.看结果 貌似上面没加对,网上找到这篇文章 https://www.jianshu.com/p/0d12448ce5c3
看样子加错地方了 , 再来一遍
65EC8F85-F5A1-4c17-9A33-EC0D6EF3881F.png
运行! 运行! 运行! run ! run! run! go! go! go! 可结果 还是
Attribute receiver#cn.jpush.android.service.PushReceiver@exported value=(true) from [cn.jiguang.sdk:jpush-google:4.5.0] AndroidManifest.xml:114:13-36
is also present at [cn.jiguang.sdk:jpush:4.4.5] AndroidManifest.xml:122:13-37 value=(false).
Suggestion: add 'tools:replace="android:exported"' to <receiver> element at AndroidManifest.xml:111:9-129:20 to override.
难道是因为 没有 tools:replace ????
再来 !!!!!!

结果 -------------------------------------------,还是这个鬼
Attribute receiver#cn.jpush.android.service.PushReceiver@exported value=(true) from [cn.jiguang.sdk:jpush-google:4.5.0] AndroidManifest.xml:114:13-36
is also present at [cn.jiguang.sdk:jpush:4.4.5] AndroidManifest.xml:122:13-37 value=(false).
Suggestion: add 'tools:replace="android:exported"' to <receiver> element at AndroidManifest.xml:111:9-129:20 to override.
无奈了,哪位大神能给点指点,【要哭了!】