-
Notifications
You must be signed in to change notification settings - Fork 40
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
Resulting APK is not compatible with both 32 and 64 bit devices #10
Comments
Thanks for the report! But, I'm going to need a little more context to debug your issue- Steps to ReproducePlease tell us exactly how to reproduce the problem you are running into. Please attach a small application (ideally just one main.dart file) that If the problem is with your application's rendering, then please attach LogsRun your application with Run Finally, paste the output of running |
If we were connected with android phone, debug mode were working .In debug mode, our application is Ok ( running with this comment 'flutter run --verbose' ).But we build apk and then copy, install on Vivo,HUAWEI,Nokia and Mi( greater than android version 7.0) , we get the following error.
|
Okay, can you please paste the output for this?
(This runs the flutter app in release mode, instead of the default development mode) |
[ +48 ms] executing: [D:\test_app\android] D:\test_app\android\gradlew.bat app:tasks --all
[ +33 ms] Resolving dependencies... (completed) |
And after this it just crashes? |
Same issue. Works with samsung but not with Huawei. When opening the my app on the honor 8x it closes again. |
I think we're going to need adb logs to debug this. Please run We should hopefully, be able to see at least some kind of error revealing the reason for the crash... |
FWIW, I tried on a Xiaomi device, and the example seems to work fine. |
Yes, but Xiaomi ( Android version 7 and above ) does not work fine. |
Logcat of the Honor 8x: https://gist.github.com/Borduni/218cbe0d0f9235fda739f23dbd61a0b4 |
At first glance, I see the following -
Looks related to flutter/flutter#18939 or flutter/flutter#18494 Since Honor 8x has a 64-bit CPU, I might need to change |
Compilation with |
@Borduni I don't think we can do much here. Upstream seems to suffer from the same. Meanwhile, are you guys able to distribute separate 32 and 64 bit apks? |
I haven't released my app yet but I think its possible as a google play developer to upload a 32 and a 64 bit variant of the app |
I had this problem and I fixed it , use ndk {abiFilters="armeabi-v7a"} inside the default config of gradle app build , this will result in making a 32-bit apk that works for 64-bit devices with half the size , I'm pretty sure it will work that way, so you can close this issue |
do an apk analyze and see which packages in the lib folder , if you found arm and arm64 then you may have a problem of conflicting packages especially in finding libflutter.io , by using the the abi filters as I mentioned above you will find one package just for arm which does work by arm64 devices |
The issue is that flutter will only add libflutter.so to one selected platform folder in the release APK. The workaround you suggested, unfortunately, seems to only work for some people not all. |
I just published app to play store. App crashes on some devices. |
@itsmebrp let me see if I can publish multiple apks to the play store. (There is a section in readme about it, but I haven't actually tried to upload to play store myself. |
Same issue here. I have no idea what the problem is and I cannot find a fix. I have a deadline to meet. Has anybody found a solution... |
Arg, this sounds like a bummer. The play store will require 64 bit starting on the 1 August. Assuming there will still be 32bit devices wanting to run our apps after 1 august, how to make sure 32bit AND 64bit is included in release builds ? https://android-developers.googleblog.com/2019/01/get-your-apps-ready-for-64-bit.html |
Begging the flutter developers at flutter/flutter#18494 seems to be the only way. Let's hope these guys solve the issue in time! |
The solution @afamobius provided worked for me. It also reduced 30MB apk size to 13MB and worked on all the devices I tested so far (on about 8 different models). However I would be happy to know what the alternative solutions are. |
I do not see the solution that was referred to by @hwkd from @afamobius |
Looks like this is fixed -- flutter/flutter#18494 (comment). Docs on this - https://flutter.dev/docs/deployment/android#build-an-apk |
Still getting the issue after upgrading to 2.0. I'm not sure that cause the issue or something else but never get this issue before |
this project is abandoned, unless someone forks it to fix it and update it, it's useless, such a shame that the best pdf plugin died, but that's what it is , it's dead |
My release apk run on android version 8.0 (Samsung)but not run on Vivo,HUAWEI,Nokia and Mi(8.0).
This error is due to pdf viewer plugin .I try many plugin such as flutter_full_pdf_viewer,
flutter_pdf_viewer, pdf_viewer_plugin and pdf_viewer_2 but debug running is Ok.
The text was updated successfully, but these errors were encountered: