Skip to content

Commit 994b36b

Browse files
committed
Fix Flutter build issues on x86
1 parent c16cac5 commit 994b36b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ android {
2020
versionName "1.6.0"
2121

2222
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
23+
24+
// Flutter doesn't support x86 (32-bit), but cronet-embedded includes x86 native
25+
// libs. Without this filter, x86 devices pick the incomplete x86 directory and
26+
// then crash because libflutter.so is missing.
27+
ndk {
28+
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64'
29+
}
2330
}
2431

2532
signingConfigs {

0 commit comments

Comments
 (0)