Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Is there a option to build 64 bit APK with Unity 2017.3.1f1?

Discussion in 'Android' started by Zaine7673, Jul 25, 2019.

  1. Zaine7673

    Zaine7673

    Joined:
    Feb 15, 2018
    Posts:
    238
    I have a apk that was built with Unity 2017.3.1f1 a while back and it has been on Playstore for some time now. With the recent changes that google are making or planning to make, I'm trying to rebuild this with 64 bit support.

    Everything I've read online advises to go to player settings, change scripting backend under other settings from mono to IL2CPP - after this apparently I'm supposed to get an option to check a box titled "ARM64" under target architectures but I'm not getting this option.

    Capture.PNG

    Am I doing something wrong or is it just not possible using this version of unity? If not, any ideas on what the best workaround is?

    thanks in advance for any suggestions
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,864
    You have to update to 2017.4 to get this option.
     
  3. Zaine7673

    Zaine7673

    Joined:
    Feb 15, 2018
    Posts:
    238
    Thanks for the reply. I've updated it and tried to build but am now trying to resolve a new error for the past few days. When building and selecting ARM64 it gives me the following errors

    and then says it has built successfully but there is no apk in the selected location.

    I've tried a few solutions that have worked with others such as restarting the computer, reinstalling the NDK and making sure NDK location path does not contain whitespace but nothing seems to be working :-/
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    Please attach editor.log, next "Failed running C:\Program Files\Unity\Hub\Editor\2017.4.30f1\Editor\Data\il2cpp/build/il2cpp.exe" there should more info.
     
  5. Zaine7673

    Zaine7673

    Joined:
    Feb 15, 2018
    Posts:
    238
    Hi, apologies for the delay. Was just trying a few different things out.

    So it seems I can build ARM64 if I import the game into unity 2018 but doing this messes up the physics and causes more issues than it resolves.

    The requested Editor log is below.

    Would really help is anyone can set me in the right direction. I have no experience with ARM64 so am grateful for any help.
     

    Attached Files:

  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    I would guess your NDK folder is corrupted, try deleting it, and reinstall NDK.
     
  7. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
    Hi @aleksandrk , @Tomas1856 ,
    I have some problem on arm64 architecture ,
    I make a build with ARM64 architecture that is working very slow(lagging) on android device, and i also make a build with ARMv7 architecture that is working perfectly.
    So what should we do for that?

    Unity version : Unity-2019.2.0f1
    ndk version : android-ndk-r16b
     
  8. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    Try disabling Stacktrace Logging in Player Settings, set it to None, and see if that helps. There's an outstanding bug, where stacktrace resolving is much slower on ARM64 than ARM7.

    If that helps, that means you're logging a lot of stuff to logcat, consider disabling logs in your code
     
  9. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
    Thank You So much ,
    That is working for me:)
     
  10. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
    This Solution working sometime,
    after sometime lagging problem occurs..

    this is not a permanent solution of lagging for arm64 architecture. :(
     
  11. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    Without profiling it's really hard to say, did you try connecting Profiler to your application?
     
  12. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
    Yes i'm tried, but profiler rendering going to up when application is running on android.
    while i make simple 2d game, then why it occurs?
     
  13. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    Sorry could you rephrase, is profiler showing for you that a lot of time gets consumed on rendering your game on Android device?
     
  14. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
    Yes.
     
  15. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    Try connecting FrameDebugger to your game, and see if there are any unexpected draw calls.
     
  16. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
    okay, i will checking now.
     
  17. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
  18. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
    Hi @Tomas1856,
    I am checked that frame debugger there is no unexpected draw calls issues.
    now what to do for this issue, any other solutions available? :confused:
     
  19. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    You said that your game is faster on ARMv7 compared to ARM64, there's a possibility there's a bug somewhere inside Unity. Submitting a bug with repro project attache would help in this case.
     
  20. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
    i am already done the bug report with project, but i don't got any reply.
     
  21. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    Try checking your spam folder
     
  22. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
    i have checked spam also there is no email available in spam related to unity bug report.
    can you resend the email for our bug report?
     
  23. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    I can't, I don't have any links to your bug. It seems there are infrastructure problems on Unity servers, your email might be delayed
     
  24. Dhiren_AI

    Dhiren_AI

    Joined:
    May 10, 2019
    Posts:
    16
    This is the screenshot of the bug report that i submitted.
    I submitted bug report form following email id :
    sohilkadevar@gmail.com

    Screen Shot 2019-08-09 at 2.16.12 PM.png

    So do i have to resubmit bug report ?
     
  25. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    Give it 24hours until servers are back online, if there still won't be any answer, resubmit a bug.
     
  26. muhammadtahiriqbal

    muhammadtahiriqbal

    Joined:
    Jun 27, 2015
    Posts:
    8
    I am facing also that kind of issue its works file when i am using mono scripting back-end and when i switched to IL2CPP with 64bit support it behave too much slow. i am using unity 2018.4.3f1
     

    Attached Files:

  27. babji3

    babji3

    Joined:
    May 28, 2015
    Posts:
    179
    Hi , did anyone solved the issue?? plz am also facing same issue.
     
  28. aneha608

    aneha608

    Joined:
    Feb 11, 2019
    Posts:
    2
    Pls anyone cal tell me the solution .. of this issue ...I suppose that my FixedUpdate calculations are working fine on 32 bit and lagging on 64 bit illcpp
     
  29. aneha608

    aneha608

    Joined:
    Feb 11, 2019
    Posts:
    2
    Is it solved ?
     
  30. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    what exactly? if you're asking about infrastructure, it was fixed long ago
     
  31. unity_O25_vF1X9yV4WA

    unity_O25_vF1X9yV4WA

    Joined:
    Apr 8, 2020
    Posts:
    1
    what is stracktrace logging i couldn't find it in player setting hope to get a iamge of what should i set to None! please help!
     
  32. absurdnoize

    absurdnoize

    Joined:
    Nov 23, 2019
    Posts:
    10