Browse Source

abiFilters 添加 x86_64

周素华 10 months 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 71
             shrinkResources false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
72 72
             minifyEnabled false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
73 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 77
         profile {
@@ -81,7 +81,7 @@ android {
81 81
             shrinkResources false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
82 82
             minifyEnabled false // 重要,打印机有so库,fix bug: https://github.com/flutter/flutter/issues/47527
83 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 87
         debug {