Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flutter build apk --split-per-abi: what is the difference between app-armeabi-v7a-release.apk and app.apk

When I run flutter build apk --split-per-abi I get 4 files in the directory flutter-apk:

  1. app-arm64-v8a-release.apk,
  2. app-armeabi-v7a-release.apk,
  3. app-x86_64.apk,
  4. app.apk.

I already know that the first three apks are due to different cpu-architectures/ instructionsets. On my android-phone I am able to install app-armeabi-v7a-release.apk and app.apk. So are they the same? Where is the difference?

like image 253
Norman Avatar asked Dec 19 '25 05:12

Norman


1 Answers

I think you first run flutter build apk that generates the apk app.apk, this apk will run almost to all architectures (decides by itself). Then you again run the command flutter build apk --split-per-abi. which means you get the two command results both. Just try to delete all apk output files and re-run the command flutter build apk --split-per-abi, I hope you will get only three files.

like image 51
Senay Gebre Avatar answered Dec 21 '25 19:12

Senay Gebre



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!