Repository: flutter
Issue: [tool] Some plugins cause other architecture files to be included when building with `flutter build apk --target-platform`
Labels: platform-android,tool,t: gradle,has reproducible steps,P2,found in release: 3.3,found in release: 3.6,team-android,triaged-android

After packaging using android-arm64 as a packaging parameter, it was found that other architectures were in the package, and they took up some space. How to build ARM64-only architecture packages?
 
![WeChat992742f48cc8b9aa9360d246cc041e4d](https://user-images.githubusercontent.com/11640176/202101291-21de5bf3-2718-4c82-9035-c025857de27b.png)


command & logs:

```
hanshow@sunpengda-mini handy_flutter % flutter build apk --release --target-platform android-arm64 --analyze-size 

💪 Building with sound null safety 💪

Running Gradle task 'assembleRelease'...                           40.2s
✓  Built build/app/outputs/flutter-apk/app-release.apk (18.5MB).
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
app-release.apk (total compressed)                                         19 MB
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  META-INF/
    CERT.SF                                                                13 KB
    CERT.RSA                                                                1 KB
    MANIFEST.MF                                                            12 KB
  classes.dex                                                             953 KB
  lib/
    arm64-v8a                                                               9 MB
    Dart AOT symbols accounted decompressed size                            9 MB
      package:flutter                                                       3 MB
      package:pointycastle                                                922 KB
      package:handy_flutter                                               751 KB
      dart:core                                                           389 KB
      dart:ui                                                             268 KB
      dart:typed_data                                                     229 KB
      dart:collection                                                     201 KB
      dart:io                                                             196 KB
      package:flutter_localizations                                       135 KB
      package:fl_chart                                                    128 KB
      dart:async                                                          113 KB
      package:get                                                         105 KB
      package:flutter_spinkit                                              95 KB
      package:intl                                                         90 KB
      package:flutter_js                                                   90 KB
      dart:ffi                                                             87 KB
      dart:convert                                                         64 KB
      package:pull_to_refresh                                              63 KB
      package:dio                                                          57 KB
      package:source_span                                                  48 KB
    armeabi-v7a                                                             1 MB
    x86                                                                     2 MB
    x86_64                                                                  2 MB
  assets/
    flutter_assets                                                          1 MB
    mlkit_barcode_models                                                  860 KB
  AndroidManifest.xml                                                       3 KB
  res/
    51.9.png                                                                2 KB
    CG.png                                                                  5 KB
    D2.png                                                                  4 KB
    Q2.png                                                                188 KB
    SD.png                                                                  2 KB
    Tx.9.png                                                                1 KB
    YM.9.png                                                                1 KB
    aO.9.png                                                                1 KB
    jZ.9.png                                                                1 KB
    jy.png                                                                  2 KB
    m3.9.png                                                                1 KB
    rc.png                                                                  2 KB
    u3.png                                                                  1 KB
    ya.xml                                                                  1 KB
  resources.arsc                                                          156 KB
  kotlin/
    collections                                                             1 KB
    kotlin.kotlin_builtins                                                  4 KB
    reflect                                                                 1 KB
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
```
 flutter doctor -v:
```

[!] Flutter (Channel master, 3.5.0-12.0.pre.168, on macOS 12.5 21G72 darwin-arm64, locale zh-Hans-CN)
    • Flutter version 3.5.0-12.0.pre.168 on channel master at /Users/hanshow/flutter_gitee/Flutter
    ! Upstream repository https://gitee.com/mirrors/Flutter.git is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to https://gitee.com/mirrors/Flutter.git to dismiss this error.
    • Framework revision a1432a9c5d (8 days ago), 2022-11-07 19:17:03 -0600
    • Engine revision e7d7edab98
    • Dart version 2.19.0 (build 2.19.0-374.0.dev)
    • DevTools version 2.19.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to
      perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/hanshow/Library/Android/sdk
    • Platform android-33, build-tools 30.0.3
    • Java binary at: /Users/hanshow/Documents/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.2

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] Android Studio (version 2021.3)
    • Android Studio at /Users/hanshow/Documents/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.72.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (2 available)
    • iPhone 8 Plus (mobile)     • E24E9992-92FF-4F02-A7BD-09C59D229139 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-1
      (simulator)
    • iPhone 14 Pro Max (mobile) • 52A67EB4-2B9D-45DD-84F3-94D371E6B8D9 • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-0
      (simulator)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.
```