Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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

Discussion in 'Android' started by siddharth3322, Aug 19, 2019.

  1. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    834
    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:

    play_store_error_aab.png

    Here you have SDK and NDK path setup:
    sdk_ndk_settings.PNG

    Now, what is the solution for this?
    What step I did wrong that I can't able to understand?
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,315
    Like mentioned in other threads, deselect x86 architecture in Player Settings
     
  3. AlexHell

    AlexHell

    Joined:
    Oct 2, 2014
    Posts:
    164
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,315
    Android docs are not correct in this case
     
  5. Alexander21

    Alexander21

    Joined:
    Dec 14, 2015
    Posts:
    243
    @Tomas 1856 i have deselect the x86 settings. When i try to upload the build it shows the severe warnings.I have attached the image with this. Shall i proceed against with this warnings or i am little bit afraid . may be apk not available for fewer devices....

    Kindly reply
     

    Attached Files:

  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,315
    Like mentioned in other threads, there's only few devices supporting x86, so don't worry about this
     
  7. Haze74

    Haze74

    Joined:
    Jul 28, 2015
    Posts:
    11
    Thanks @Tomas1856! Removing x86 from the build allowed me to upload to Google Play!
     
  8. v01pe_

    v01pe_

    Joined:
    Mar 25, 2015
    Posts:
    57
    I could upload but always got a warning, that the app doesn't fulfil the 64 bit requirements, although I checkes all 3 (in Unity available) architectures… also for me removing the x86 architecture got rid of the warning…

    When reading the correspondig ducumentation, I found this:
    So the problem is not including x86, but the absence of a corresponding x86_64. As aforementioned, I would not worry too much about it, as only very few devices actually depend on this architecture.
     
    sama-van likes this.
  9. shubhamshetkar25

    shubhamshetkar25

    Joined:
    Feb 4, 2017
    Posts:
    21
    there is no x86 in unity 2019.3.1f1 what to do? I get this error.
     
  10. eliGasious

    eliGasious

    Joined:
    Apr 7, 2015
    Posts:
    12
    same in 2019.4.11f1
     
  11. Mohanad_GX

    Mohanad_GX

    Joined:
    Mar 10, 2020
    Posts:
    1
    same, have you guys found a fix for that ?
     
  12. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    268
    Last edited: Oct 21, 2020 at 2:28 PM
  13. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    2,358
    Use a gradle template (mainTemplate.gradle) to exclude x86 architecture.

    E.g.
    Code (CSharp):
    1. android {
    2.   packagingOptions {
    3.       exclude ('/lib/armeabi/*' + '*')
    4.       exclude ('/lib/mips/*' + '*')
    5.       exclude ('/lib/mips64/*' + '*')
    6.       exclude ('/lib/x86/*' + '*')
    7.       exclude ('/lib/x86_64/*' + '*')
    8.   }
    9. }
    Also, make sure you've got IL2CPP enabled, otherwise you won't be able to build x64.
    There's settings in 2019.2.21f1. Make sure you're checking in a correct place?
    upload_2020-10-23_11-24-44.png
     
unityunity