This release is not compliant with the Google Play 64-bit requirement (Apple Music Kit)

194 Views Asked by At

I am using Apple Music Kit in my android application and while uploading signed APK to the google play store it is giving me an error:

This release is not compliant with the Google Play 64-bit requirement.
The following APKs or app bundles are available to 64-bit devices, but they only have 32-bit native code: [2]
Include 64-bit and 32-bit native code in your app. Use the Android App Bundle publishing format to automatically ensure that each device architecture receives only the native code that it needs. This avoids increasing the overall size of your app

I used APK Analyzer and I found out that apple music kit libs are not present in the X86, X86_64, and arm64-v8a and it is present in the armeabi-v7a only. As shown in the image:

enter image description here

I checked the Apple music SDK kit and they are not providing any separate SDK for the 64 bit here is the link for Apple music SDK

How do I add this lib to 64 bit?

I have added ndk to defaultConfig in gradle file:

ndk {
      abiFilters 'armeabi-v7a', 'x86', 'armeabi', 'mips', 'x86_64'
 }

I tried this as well but still facing the same issue:

ndk {
            abiFilters 'armeabi-v7a', 'armeabi', 'mips'
        }

I have added these two lined for the release build:

 minifyEnabled true
 shrinkResources true

How do I solve this issue? Without this google will not allow me to publish the APK. Can we upload the build only with 32 bit?

0

There are 0 best solutions below