Support APKs with 32-bit and 64-bit binaries within them
Problem
using `flutter build apk --release --flavor pro ` make apk file , but arm64-v8a do not include libflutter.so file.so app launch fail. when I add `--target-platform=android-arm64 `: `flutter build apk --release --flavor pro --target-platform=android-arm64`,apk file include so flie. But app launch fail on 32 bit cpu. what can i do, apk file can run on 64 and 32 cpu @mravn-google [code block] I create new project, debug or releas, work well. diffrece from new project from my project is that i add thrid party `so` file where is the problem ?
Error Output
Error: Couldn't load flutter from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.jianzhibao.ka.enterprise-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.jianzhibao.ka.enterpri
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Support APKs with 32-bit and 64-bit binaries within them
I have the same problem, building for 32-bit will exclude 64-bit devices, it runs on them though. Building for 64 by specifying `--target-platform android-arm64` works on 64-bit devices, but crashes on 32-bit devices. Also Google will be restricting upload of apks to be 64-bit in 2019. Flutter Team, please resolve this basic issue!
Trust Score
9 verifications
- 1
I have the same problem, building for 32-bit will exclude 64-bit devices, it run
I have the same problem, building for 32-bit will exclude 64-bit devices, it runs on them though. Building for 64 by specifying `--target-platform android-arm64` works on 64-bit devices, but crashes on 32-bit devices. Also Google will be restricting upload of apks to be 64-bit in 2019.
- 2
Flutter Team, please resolve this basic issue!
Flutter Team, please resolve this basic issue!
Validation
Resolved in flutter/flutter GitHub issue #18494. Community reactions: 96 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep