Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APKs or App Bundles are available to 64-bit devices but they only have 32-bit native code

I have exported an Android App Bundle file to upload at Play store with NDK downloaded from Unity desired location because Android Studio NDK file is not compatible with Unity.

I got this kind of error message when I upload the build:

Screen Shot

Here you have SDK and NDK path setup:

Screen Shot

Now, what is the solution for this?

What step I did wrong that I can't able to understand?

Please don't mention about the duplicate question because I have tried other options they didn't work for me.

like image 567
Siddharth Avatar asked Aug 19 '19 18:08

Siddharth


People also ask

Can 32-bit Android app run on 64-bit?

For the unaware, Android currently supports both 32-bit and 64-bit applications. Due to this, developers have to maintain two binaries for their apps and ARM has to offer CPUs that feature legacy 32-bit support.

How do I know if APK is 32 or 64-bit?

APK is ZIP. You can open it and check directory lib to see which architectures are supported. If there is no directory lib , it supports all architectures. 64-bit Android is backwards compatible and can run 32-bit applications.

Are Android apps 64-bit?

That's despite the fact that the Armv8 ISA introduced the AArch64 execution mode back in 2011, Android 5.0 Lollipop introduced platform-level support for 64-bit apps in 2014, and Google Play mandated that apps support 64-bit CPUs in 2019.

What version of Android is 64-bit?

As mentioned earlier, Android 5.0 Lollipop was the first fully 64-bit compatible version of Android, launched in 2014. Three years after presenting it, Google vocalized its demand for support of the 64-bit processor in 2017.


2 Answers

For future reference:

It's an issue with google play and x86 build that do not offers a 64bit counterpart code. Disabling x86 build fix this issue.

Reference: https://forum.unity.com/threads/successful-unity-aab-build-not-compliant-with-the-google-play-64-bit-requirement.729035/

The problem started on 08/20/2019.

like image 178
letonai Avatar answered Oct 04 '22 19:10

letonai


Make sure Edit > Project Settings > Player > Configuration > Scripting Backend is set to IL2CPP and Target Architectures > ARM64 is ticked.

enter image description here

like image 37
magicode118 Avatar answered Oct 04 '22 20:10

magicode118