Browse Source

abiFilters 添加 x86_64

周素华 1 year ago
parent
commit
d7e6001f83
1 changed files with 2 additions and 2 deletions
  1. 2 2
      android/app/build.gradle

+ 2 - 2
android/app/build.gradle

@@ -71,7 +71,7 @@ android {
71
             shrinkResources false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
71
             shrinkResources false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
72
             minifyEnabled false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
72
             minifyEnabled false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
73
             ndk {
73
             ndk {
74
-                abiFilters "armeabi-v7a"  // 主要减包大小,效果是能减少一半,以arm64-v8a为主ABI的设备,辅助ABI为armeabi-v7a和armeabi;以armeabi-v7a为主ABI的设备,辅助ABI为armeabi。
74
+                abiFilters "armeabi-v7a","x86_64"   // 主要减包大小,效果是能减少一半,以arm64-v8a为主ABI的设备,辅助ABI为armeabi-v7a和armeabi;以armeabi-v7a为主ABI的设备,辅助ABI为armeabi。
75
             }
75
             }
76
         }
76
         }
77
         profile {
77
         profile {
@@ -81,7 +81,7 @@ android {
81
             shrinkResources false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
81
             shrinkResources false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
82
             minifyEnabled false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
82
             minifyEnabled false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
83
             ndk {
83
             ndk {
84
-                abiFilters "armeabi-v7a"  // 主要减包大小,效果是能减少一半,以arm64-v8a为主ABI的设备,辅助ABI为armeabi-v7a和armeabi;以armeabi-v7a为主ABI的设备,辅助ABI为armeabi。
84
+                abiFilters "armeabi-v7a", "x86_64"  // 主要减包大小,效果是能减少一半,以arm64-v8a为主ABI的设备,辅助ABI为armeabi-v7a和armeabi;以armeabi-v7a为主ABI的设备,辅助ABI为armeabi。
85
             }
85
             }
86
         }
86
         }
87
         debug {
87
         debug {