cannot find zip-align when publishing app

后端 未结 25 1699
名媛妹妹
名媛妹妹 2020-11-29 18:00
cannot.find.zip.align=The zipalign tool was not found in the SDK.

Please update to the latest SDK and re-export your application
or run zipalign manually.

Aligning         


        
相关标签:
25条回答
  • 2020-11-29 18:49

    I've fixed this issue by doing this:

    Open Android Studio > Preferences > SDK Tools and check "Android SDK Build-Tools"

    0 讨论(0)
  • 2020-11-29 18:53

    With Android Studio 1.0 you have to use zipAlignEnabled true

    0 讨论(0)
  • 2020-11-29 18:53

    If zipalign command is not found from Command-Line add file path of zipalign to environmental variables. As mentioned above, it's never good to change exe file location.

    For Windows users:

    Add to User->PATH->"path to zipalign folder"

    In my case it path was C:\adt-bundle-windows-x86_64-20140702\sdk\build-tools\android-4.4W. In that folder is zipalign.exe

    This link can help you with setting path and understanding it http://www.voidspace.org.uk/python/articles/command_line.shtml#path

    0 讨论(0)
  • 2020-11-29 18:55

    i solved by RUN as Administrator @ your SDK Manager.exe in directory C:\Program Files\Android SDK

    after that u'll get updated build tools an any repository

    0 讨论(0)
  • 2020-11-29 18:56

    Check in the SDK manager, that it has installed the "build-tools". Mine in its default state, did not do this.

    0 讨论(0)
  • 2020-11-29 19:00

    I decided to just make a video for this..I kept pasting it into tools but alas that was not working for me. I moved it to platform-tools and voila publishing right away..must restart eclipse afterwards.

    Tutorial for fixing missing zipalign

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