Search Unity

Android NDK not working with no reason?

Discussion in 'External Tools' started by BL4CK0UT19, Sep 3, 2019.

  1. BL4CK0UT19

    BL4CK0UT19

    Joined:
    Aug 21, 2019
    Posts:
    21
    Hi.
    So,i was about to launch my game. I was having some problems,but nothing i couldn't solve.
    And then,my NDK stopped working with no reason....
    After i build the apk like three or four times,it just stopped working.
    I never had this problem before.
    This is the error i get.
    upload_2019-9-3_10-25-46.png

    I HAVE the Unity NDK and SDK all installed. (updated today,but i was getting the error yesterday too)
    upload_2019-9-3_10-26-40.png

    I have tried to manually download the NDKs,not working too.
    upload_2019-9-3_10-28-28.png

    Absolutely nothing works. When i was uploading my game to google play console,i got that error message saying i need to update my APK to 64-bit version (or something like that)

    So i went to the Project Settings/Player Settings/Other settings,and did two changes:
    Changed the SCRIPTING BACKEND from MONO to IL2CPP
    And then i marked the ARM64 checkbox.

    I have also marked the option "Split APKs by target architeture",and i think this is the problem. After i marked that,i can't save my file as APK anymore,can only save it as AAB,App Bundle.

    upload_2019-9-3_10-29-48.png


    After i UNMARKED ALL the options,and change everything back to the way it was before,i can build the application APK normally. But.... can't send it to Play Store.

    Please,can someone help me?
    Just tell me what i need to do to send this app to play store!
     

    Attached Files:

  2. BL4CK0UT19

    BL4CK0UT19

    Joined:
    Aug 21, 2019
    Posts:
    21
    Updaet: when i change the IL2CPP back to MONO
    And UNMARK the ARM64 checkbox,i start gettint the error AGAIN
    "Android NDK not found or invalid. Please,fix it in Preferences>External Tools"

    I just don't know what to do anymore...
     
  3. BL4CK0UT19

    BL4CK0UT19

    Joined:
    Aug 21, 2019
    Posts:
    21
    After i start messing with that,my ADs stopped working also,and i have no idea why.....
    Everything was working fine,i have and older version on my phone and everything is working...
    These are my build settings:
    Im very lost now,really need help...
    upload_2019-9-3_10-56-9.png
     
  4. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    114
    Hi,

    Have you tried to uncheck the x86 Architecture, and only build an .aab for ARMv7, and ARM64?
    The x86 option is only the 32-bit version, and not 64-bit, so it will make the whole package be rejected.
     
    BL4CK0UT19 likes this.
  5. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,190
    What do you have under Preferences/External Tools?
     
    BL4CK0UT19 likes this.
  6. BL4CK0UT19

    BL4CK0UT19

    Joined:
    Aug 21, 2019
    Posts:
    21
    Hi,so,i managed to make it work properly.
    All that i did was change everything back to default settings and then i download and Android NDK 19 i found on a very hard place to find. I literally don't know where did i found it,sorry.
    But i donwloaded like 3 or 4,and then i found one that worked.
    yeah,don't know why...