Getting rid of 32-bit native library warning

18 views
Skip to first unread message

Andreas Falkenhahn

unread,
Sep 15, 2021, 11:12:12 AMSep 15
to andro...@googlegroups.com
I don't use Android Studio but build my APKs/AABs that use native code manually by running

gradlew build
gradlew bundle

from a command prompt. But whenever I build my app like that, I get this warning:

WARNING:: This app only has 32-bit [armeabi-v7a] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement

This warning doesn't make any sense at all to me because gradle builds *separate* APKs/AABs for arm7 and arm8 so *of-course* app-arm7-release.apk and app-arm7-release.aab do *not* contain any 64-bit libraries because they are, well, 32-bit. The 64-bit libraries are in the other files, i.e. app-arm8-release.apk and app-arm8-release.aab. So why on earth does gradle nag about this? Is there any way to get rid of this warning? It's really annoying me.

--
Best regards,
Andreas Falkenhahn mailto:and...@falkenhahn.com

seal2002

unread,
Sep 27, 2021, 3:04:32 AMSep 27
to android-ndk
Hi,

Cannot get rid of this warning if you don't add 64bit architecutre to the build.gradle. Just ignore it, and, you need to make the APK/AAB has contain 64 bit architures to upload your app to console.

Hope that help.
Reply all
Reply to author
Forward
0 new messages