目录

HUAWEI ML Kit supports both the 32-bit and 64-bit architectures. If you only require binary files of the 64-bit architecture, use the following code to remove binary files of the 32-bit architecture:

  1. android{
  2.    defaultConfig{
  3.        ndk.abiFilters 'arm64-v8a', 'x86_64'
  4.    }
  5. }

The preceding configuration can effectively reduce the size of the package after your app integrates the HMS Core ML SDK.