cannot find zip-align when publishing app

后端 未结 25 1768
名媛妹妹
名媛妹妹 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: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.+'

提交回复
热议问题