Giter Club home page Giter Club logo

Comments (12)

unclexiao avatar unclexiao commented on August 22, 2024 2

官方关于这个问题,开了很多讨论,比如 #18494#1868119275,也有人提了几个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.

abel-wang-git avatar abel-wang-git commented on August 22, 2024

我升级到最新版的flutter(v1.5.8)时出现这个问题,回退到flutter1.4.5时问题消失.其他版本没有测试

from jpush-flutter-plugin.

FirePrayer avatar FirePrayer commented on August 22, 2024

我也遇到了,好蛋疼,难道要降版本?

from jpush-flutter-plugin.

jlcool avatar jlcool commented on August 22, 2024

我1.6有这个问题,官方赶快修改下咯 @huangminlinux

from jpush-flutter-plugin.

unclexiao avatar unclexiao commented on August 22, 2024

同样的问题,我的是v1.6.3

from jpush-flutter-plugin.

unclexiao avatar unclexiao commented on August 22, 2024

查了下以前的Issues,找到解决方案啦。 @Geekoo-Joker @jlcool @wanghuiwen1 , 只需要编译是指定平台就好啦,就像这样:

flutter build apk --target-platform android-arm64 

其实与jpush的这个错误无关,具体讨论在这里:#10

from jpush-flutter-plugin.

abel-wang-git avatar abel-wang-git commented on August 22, 2024

查了下以前的Issues,找到解决方案啦。 @Geekoo-Joker @jlcool @wanghuiwen1 , 只需要编译是指定平台就好啦,就像这样:

flutter build apk --target-platform android-arm64 

其实与jpush的这个错误无关,具体讨论在这里:#10

打包的时候可以这样,开发的时候怎么弄

from jpush-flutter-plugin.

jlcool avatar jlcool commented on August 22, 2024

@unclexiao @wanghuiwen1 应该是flutter的更新,导致在java线程中调用result.success 等方法就会闪退或者方法无效,可以注销JPushEventReceiver中onAliasOperatorResult方法callback.success(res);和callback.error(Integer.toString(jPushMessage.getErrorCode()), "", "");,这只是返回信息,没用到的话可以暂时注销

from jpush-flutter-plugin.

YourksChan avatar YourksChan commented on August 22, 2024

但是debug的时候怎么调生成的so格式呢?

from jpush-flutter-plugin.

fcloud89 avatar fcloud89 commented on August 22, 2024

指定编译平台并不能解决这个问题,但注释callback是可以临时解决的,
如果升级引用的sdk至:
'cn.jiguang.sdk:jpush:3.3.1'
'cn.jiguang.sdk:jcore:2.0.1'
也可以解决这个问题,但JMessageClient.getConversationList返回null,无法获取会话列表,im失效了

from jpush-flutter-plugin.

wangdenkun avatar wangdenkun commented on August 22, 2024

我的办法是在jpush插件配置文件AndroidManifest.xml内的receiver里添加android:process="包名"
这样不会影响jpush的调试 但是不同的工程还要挨个改 有点麻烦 没办法 只能等官方修复这个问题了

from jpush-flutter-plugin.

unclexiao avatar unclexiao commented on August 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.