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:
- android{
- defaultConfig{
- ndk.abiFilters 'arm64-v8a', 'x86_64'
- }
- }
The preceding configuration can effectively reduce the size of the package after your app integrates the HMS Core ML SDK.