Monday, September 29, 2014

Fixing XE7 + Android SDK 23 ZipAlign Problem

If you install RAD Studio XE7 and then upgrade Android SDK to version 23, you won’t be able to deploy applications to Android devices anymore.

image

The reason for that is that ZipAlign.exe was moved out of sdk\tools folder in SDK 23 and XE7’s deployment process cannot find it anymore. Now it is located in sdk\build-tools\20.0.0, but only is Android SDK Build-tools rev. 20 are installed, which doesn’t happen automatically.

image

To fix my Delphi I first had to install Build tools rev. 20. Then I copied sdk\build-tools\20.0.0\zipalign.exe to sdk\tools\zipalign.exe. That fixed the deployment problem.

I’m hoping Embarcadero will fix this in the next update, but for now you can use this workaround.

[Android sdk folder can be found in c:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk]

7 comments:

  1. Anonymous21:15

    Hello, I believe that simply changing the path in [Tools\Options\SDK Manager\Android\SDK\Zip Align location] is a better way. So, there is no need for a special fix, as the Delphi IDE is ready to correct the path. Best regards :) Zdzislaw

    ReplyDelete
  2. Anonymous09:38

    ZipAlign.exe is missing in the latest Android SDK.

    ReplyDelete
    Replies
    1. Anonymous06:34

      search ZipAlign.exe it should be present in some other folder i faced the same problem.

      Delete
  3. Anonymous23:17

    Open the SDK-Manager from Tools/Options, press Add, fill 2 edits (path to SDK,NDK), press Next, wait and press Finish ... thats all. Maybe too complicated :o)

    ReplyDelete
  4. Anonymous20:18

    XE8 .... same failure ... bravo ...

    ReplyDelete
  5. Anonymous23:20

    I managed you need to run the Andoid SDK Manager (Documents\Embarcadero\16.0\PlatformSDKs\android-sdk-windows\SDK Manager.exe) and to install build tools. It will download and install the latest tools. Then you have to manually change SDK Manager settings in Tools/Options according to the downloaded version.

    ReplyDelete
  6. if possible use seattle with sdk api 30 (android 11) ?

    ReplyDelete