Comments (12)
官方关于这个问题,开了很多讨论,比如 #18494,#18681,19275,也有人提了几个PR,并且被Merge到主线了。但是具体什么时候发布新版本,只能耐心等待吧。
我觉得现在最完美的解决方案,就是只是注释掉这一行:
ndk {
abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a'
}
只保留一种指令集,就是第七代32位ARM处理器,它能向下兼容的:
ndk {
abiFilters 'armeabi-v7a'
}
@wanghuiwen1 @jlcool 希望可以帮到你们~
from jpush-flutter-plugin.
我升级到最新版的flutter(v1.5.8)时出现这个问题,回退到flutter1.4.5时问题消失.其他版本没有测试
from jpush-flutter-plugin.
我也遇到了,好蛋疼,难道要降版本?
from jpush-flutter-plugin.
我1.6有这个问题,官方赶快修改下咯 @huangminlinux
from jpush-flutter-plugin.
同样的问题,我的是v1.6.3
from jpush-flutter-plugin.
查了下以前的Issues,找到解决方案啦。 @Geekoo-Joker @jlcool @wanghuiwen1 , 只需要编译是指定平台就好啦,就像这样:
flutter build apk --target-platform android-arm64
其实与jpush的这个错误无关,具体讨论在这里:#10
from jpush-flutter-plugin.
查了下以前的Issues,找到解决方案啦。 @Geekoo-Joker @jlcool @wanghuiwen1 , 只需要编译是指定平台就好啦,就像这样:
flutter build apk --target-platform android-arm64其实与jpush的这个错误无关,具体讨论在这里:#10
打包的时候可以这样,开发的时候怎么弄
from jpush-flutter-plugin.
@unclexiao @wanghuiwen1 应该是flutter的更新,导致在java线程中调用result.success 等方法就会闪退或者方法无效,可以注销JPushEventReceiver中onAliasOperatorResult方法callback.success(res);和callback.error(Integer.toString(jPushMessage.getErrorCode()), "", "");,这只是返回信息,没用到的话可以暂时注销
from jpush-flutter-plugin.
但是debug的时候怎么调生成的so格式呢?
from jpush-flutter-plugin.
指定编译平台并不能解决这个问题,但注释callback是可以临时解决的,
如果升级引用的sdk至:
'cn.jiguang.sdk:jpush:3.3.1'
'cn.jiguang.sdk:jcore:2.0.1'
也可以解决这个问题,但JMessageClient.getConversationList返回null,无法获取会话列表,im失效了
from jpush-flutter-plugin.
我的办法是在jpush插件配置文件AndroidManifest.xml内的receiver里添加android:process="包名"
这样不会影响jpush的调试 但是不同的工程还要挨个改 有点麻烦 没办法 只能等官方修复这个问题了
from jpush-flutter-plugin.
@wangdenkun @fcloud89 @YourksChan 向各位报告一个好消息,前天发布了新的稳定版,这个问题可以彻底地解决啦,而且无需做任何事情!
官方的原文描述如下:
From August 1st, 2019, Android apps that use native code and target Android 9 Pie will be required to provide a 64-bit version in addition to the 32-bit version when publishing to the Google Play Store. While Flutter has long supported generating 64-bit Android apps, version 1.7 adds support for creating Android App Bundles that target both 64-bit and 32-bit from a single submission. See the updated documentation on publishing Flutter-based Android apps to learn how to do this, as well as how to create separate APK files for both 32-bit and 64-bit devices.
中文社区的翻译如下:
从 2019 年 8 月 1 日开始,为了 target 到 Android Pie 版本,开发者们在 Google Play 上发布的应用 必须支持 64 位架构。Flutter 一直都支持生成 64 位的 Android 应用,在 1.7 版本里,我们加入了对 Android App Bundles 的支持,开发者们可以在一次提交里同时 target 到 64 位和 32 位。可通过阅读 这篇文档 了解到如何分别生成 32 位和 64 位到应用等更多内容。
升级之后,执行安卓包的发布命令:
flutter build apk --release
能在第一行看到这个提示:
You are building a fat APK that includes binaries for android-arm, android-arm64.
完美!立即升级到v1.7.8+hotfix.3吧~~~
from jpush-flutter-plugin.
Related Issues (20)
- 极光推送插件初始化在极光安全认证插件之后调用,会导致极光推送初始化失败,收不推送
- flutter集成闪退 HOT 1
- [iOS][AppStore]`Adaptor iOS privacy manifest` HOT 6
- 2024 Flutter iOS 隐私清单适配。否则五一app全部下架。 HOT 2
- 这玩意没法用啊
- dev3.x分支的example无法运行
- didReceiveRemoteNotification默认返回了YES
- 鸿蒙SDK已经发布了,接口也差不多,flutter啥时候加入?
- 请公开参数设置[JPUSHService setLocationEanable:];
- doesn't show notification when app is closed or terminated
- xcode编译flutter项目时报错,提示xcode compiler error "#import <duq.h>" HOT 1
- 角标数字怎样清除啊?
- 小米审核需要提供位置权限的证明材料
- PlatformException(6002, , , null)#2 JPush.setAlias (package:jpush_flutter/jpush_flutter.dart:278:9)
- MissingPluginException(No implementation found for method getRegistrationID on channel jpush)#1 JPush.getRegistrationID (package:jpush_flutter/jpush_flutter.dart:381)
- 设置别名异常,PlatformException(Error 6027, JPush.Flutter, The operation couldn’t be completed. (JPush.Flutter error 6027.), null) HOT 2
- 分支 dev-3.x 最新提交(更新JPush 540) 导致应用闪退 HOT 5
- flutter 项目小米审核被拒
- 华为推送厂商接入问题 HOT 1
- 应用内消息跳转问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpush-flutter-plugin.