cannot find zip-align when publishing app

后端 未结 25 1752
名媛妹妹
名媛妹妹 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:38

    I fixed it by installing Android SDK Build-tools 20:

    In EclipsePull Down MenuWindowAndroid SDK Manager, check Android SDK Build-tools Rev. 20, then click the Install n package(s)… button to start installing.

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

    It becomes usable if you install

    Android SDK Build-tools Rev.20
    
    0 讨论(0)
  • 2020-11-29 18:40

    With the SDK update to 20, version 20 of the build and platform tools and 23 of the sdk tolls, Google has moved a lot of things.

    Gradle (if you are using Android Studio) however has not yet been updated to reflect those changes, as stated in other Answers copying the zipalign binary to /sdk/tools/ should do the trick for now.

    UPDATE: since Android Studio 0.8.1 got released the issue seems fixed now…
    you only need to update your build.gradle and it should work fine again

    compileSdkVersion 20

    buildToolsVersion "20.0.0"

    targetSdkVersion 20

    and if you use any compat or support library

    compile 'com.android.support:appcompat-v7:20.+'

    compile 'com.android.support:support-v4:20.+'

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

    My fix worked copying zipalign.exe from sdk\build-tools\android-4.4W to sdk\platform-tools, as shown in video linked by digiboomz, and did not work copying it in sdk\tools

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

    On a mac with OSX 10.10.5,Android Studio and SDK installed the path is

    /Users/mles/Library/Android/sdk/build-tools/23.0.1/zipalign
    
    0 讨论(0)
  • 2020-11-29 18:43

    In my case SDK Build Tools 20 were already installed. I copied zipalign.exe in Tools folder but without success.

    After that I noticed that I updated Eclipse without removing or renaming the old folder.

    So I did:

    1) Renamed old Eclipse folder 2) Restarted Eclipse

    Eclipse asked to correct Android preferences because problem was Eclipse, that was still trying to use the old folder

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