Skip to content

Commit a62e426

Browse files
author
gopi2401
committed
fix: update NDK version and refine packaging options in build configuration
1 parent 0f26777 commit a62e426

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

android/app/build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (flutterVersionName == null) {
2525
android {
2626
namespace "com.example.insta"
2727
compileSdkVersion flutter.compileSdkVersion
28-
ndkVersion flutter.ndkVersion
28+
ndkVersion = "27.0.12077973"
2929

3030
compileOptions {
3131
sourceCompatibility JavaVersion.VERSION_1_8
@@ -53,6 +53,13 @@ android {
5353
setProperty("archivesBaseName","insta-v" + versionName)
5454
}
5555

56+
packagingOptions {
57+
pickFirst 'lib/x86/libc++_shared.so'
58+
pickFirst 'lib/x86_64/libc++_shared.so'
59+
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
60+
pickFirst 'lib/arm64-v8a/libc++_shared.so'
61+
}
62+
5663
buildTypes {
5764
release {
5865
// TODO: Add your own signing config for the release build.
@@ -68,6 +75,4 @@ flutter {
6875

6976
dependencies {
7077
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
71-
implementation 'com.example.library:library:1.0.0'
72-
implementation 'com.android.support:appcompat-v7:28.0.0'
7378
}

0 commit comments

Comments
 (0)