Skip to content

Commit 7358a6a

Browse files
committed
Enable legacy packaging for JNI libraries in build.gradle to resolve potential issues with native libraries.
1 parent 308ac1f commit 7358a6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flutter/android/app/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ android {
3333
targetCompatibility JavaVersion.VERSION_1_8
3434
}
3535

36+
// https://stackoverflow.com/a/70873876
37+
packagingOptions {
38+
jniLibs {
39+
useLegacyPackaging = true
40+
}
41+
}
42+
3643
kotlinOptions {
3744
jvmTarget = '1.8'
3845
}

0 commit comments

Comments
 (0)