cannot find zip-align when publishing app

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

    When I was completely desperate, I did the following, that allowed me to find official zipalign.exe. The short answer is to use the link from official (but not public :-) part of of the site:

    https://dl.google.com/android/repository/build-tools_r28-rc1-windows.zip
    

    If you use this recepy after 2018, you probably need the full explanation:

    1. Open Android Studio and go

      Android Studio->Tools->Android->SDK Manager->Android SDK->SDK update site
      
    2. Write in text editor link and open it in the browser. In my case the first link worked for me:

      https://dl.google.com/android/repository/repository2-1.xml
      
    3. Look for the latest package build-tools. In my case, it was build-tools_r28-rc1-windows.zip, but you can find the latest in your time

      Ctrl+F build-tools_
      
    4. Substitute in the URL the last part with the found package name like I did:

      https://dl.google.com/android/repository/build-tools_r28-rc1-windows.zip
      
    5. Download the package, unzip it and fortunately find official file:

      zipalign.exe
      

    If it helps you, your feedback is wellcome.

提交回复
热议问题