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

Build error

Discussion in 'Android' started by zapgamestudios, Aug 21, 2019.

  1. zapgamestudios


    Aug 30, 2018
    I cannot build to an Android app bundle.
    Everytime I get the message: " Compilation failed to complete See the Console for details."

    The error message is: "UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors"

    If I try to build to an apk file it works, but then google play console gives the warning message that ARM64 is not supported. But I checked the box which is required for ARM64.

    I already reimported all assets and used a backup project I've created earlier.
    Already reinstalled jdk. I am using jdk 12.0.2 and unity version 2018.4.6f1.

    I do not find anything that solved my problem on Google and I am stucking in this for several days now.

    Attached Files:

  2. zapgamestudios


    Aug 30, 2018
  3. AlexHell


    Oct 2, 2014
    provide 1st error message completely: click and copy-paste
    may be unity devs can help this concrete error

    also you should not mix the google error and unity build error
    1) unity build error will stop the build - provide error message
    2) when your build is complete - google can deny your APK if it's not compliant, in this case you can tick ARM64 and untick x86

    Have you resolved 0-post error?
    And you have only google error?

    As my checklist
    - Unity 2018.4.6f1 (64-bit) (I have tried this version - it build 64-bit compliant APK, have not tried AAB)
    - build-tools - 28.0.3 (unity can re-download, if it detect old)
    - android-ndk-r16b
    - target api level = 28
    - scripting runtime version = net 4.0
    - scripting backend = il2cpp
    - api compatibility level = net standard 2.
    - target architectures = ARMv7 + ARM64 (NO x86)
    - NO split apks by target architecture
    Last edited: Aug 21, 2019
  4. zapgamestudios


    Aug 30, 2018
    Yes I have the exact same settings, except scripting runtime version. Mine is net 3.5
    But I exported the game with this settings also earlier.

    But I decided now to not building it as an android app bundle. Just build it as an apk file.
    But thank you anyway.
    I have some other problems with Android app bundles also. Too much trouble

    But thank you very much for your help.