Unity Android Build Error WIN32 Exception ZipAlign

前端 未结 6 1932
情书的邮戳
情书的邮戳 2021-02-03 23:15

Every time I try to build my game for android, I get this error:

Error building Player: Win32Exception: 
ApplicationName=\'.../.../.../.../adt-bundle-mac-x86_64-         


        
相关标签:
6条回答
  • 2021-02-03 23:37

    You need to copy zipalign as suggested at accepted answer; but if there are no zipalign file in related folder first you should go tools, run android and then install build-tools

    0 讨论(0)
  • 2021-02-03 23:54
    1. Find your copy of the Android SDK in explorer
    2. Go to build-tools and choose a version (e.g.build-tools\19.1.0)
    3. Copy zipalign.exe
    4. Come back out of build-tools
    5. Go into tools
    6. Paste zipalign.exe
    0 讨论(0)
  • 2021-02-03 23:54

    In Unity go to Edit>Preferences>External Tools> in "Android SDK Location" select the folder of android-sdk (C:\Program Files (x86)\Android\android-sdk) in my case.

    0 讨论(0)
  • 2021-02-03 23:58

    You need to copy the zipalign tool from sdk/build-tools/android-{version}/ to sdk/tools/

    0 讨论(0)
  • 2021-02-03 23:59

    I fixed this simply by updating "Tools->Android SDK Build-tools" in the Android SDK Manager to the latest version.

    0 讨论(0)
  • 2021-02-04 00:01

    To fix this error:

    • Go to C:\Program Files (x86)\Android\android-sdk\build-tools\20.0.0 (you may have different version)
    • Copy zipalign.exe to C:\Program Files (x86)\Android\android-sdk\tools\ (or in your Android SDK path)

    Found here

    0 讨论(0)
提交回复
热议问题