Bug 20911 - Zipalign location has changed, resulting in build failures
Summary: Zipalign location has changed, resulting in build failures
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Tools and Addins ()
Version: 4.14.0
Hardware: Macintosh Mac OS
: Highest blocker
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
: 20992 21047 ()
Depends on:
Blocks:
 
Reported: 2014-06-26 14:29 UTC by Peter Collins
Modified: 2014-07-08 18:03 UTC (History)
9 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Peter Collins 2014-06-26 14:29:56 UTC
Upgrading Android SDK tools to rev 23 removes zipalign from $(ANDROID_SDK)/tools/zipalign. The zipalign tool can now be found in $(ANDROID_SDK)/build-tools/20.0.0/zipalign after installing rev 20 of the Android SDK Build-tools.

The immediate workaround is to copy or symlink the zipalign tool from `build-tools/20.0.0/zipalign` to `tools/zipalign`.
Comment 3 PJ 2014-07-01 16:55:00 UTC
*** Bug 20992 has been marked as a duplicate of this bug. ***
Comment 4 Jonathan Pryor 2014-07-01 22:32:13 UTC
Is the androidtools fix sufficient? The <AndroidZipAlign/> task also needed fixing; I don't know if this is called by the IDE, but it IS called by the Install target (command-line use).

The <AndroidZipAlign/> fix is in monodroid/61e9e84a and monodroid-4.14-series/3021dba4.
Comment 5 Ram Chandra 2014-07-03 13:01:43 UTC
*** Bug 21100 has been marked as a duplicate of this bug. ***
Comment 7 Mohit Kheterpal 2014-07-03 14:21:20 UTC
I have checked this issues and I am still not able to build android application. I am getting following error 

"/Users/360logicaxamarinmacmini/Projects/tesr3443/tesr3443: Error XA5205: Cannot find `zipalign`. Please install the Android SDK Build-tools package with the `/Users/360logicaxamarinmacmini/Desktop/android-sdk-macosx_Róbert_à/tools/android` program. (XA5205) (tesr3443)"

Build output : https://gist.github.com/Mohit-Kheterpal/037dadc02c2db43165a0

NOTE : I have updated my SDK tools to rev 23 and Zipalign is present in "build-tools/20.0.0".

Screencast : http://screencast.com/t/dGjv4XUMXjA

Environment info : 
=== Xamarin Studio ===

Version 5.1.2 (build 0)
Installation UUID: 449f40dd-b3f1-4028-9a6b-cca0d1a2307d
Runtime:
	Mono 3.4.0 ((no/954ed3c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000214

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 7.2.5.5 (Trial Edition)
Hash: 87026b6
Branch: 
Build date: 2014-07-02 19:39:08-0400

=== Xamarin.Android ===

Version: 4.12.6 (Trial Edition)
Android SDK: /Users/360logicaxamarinmacmini/Desktop/android-sdk-macosx_Róbert_à
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.Mac ===

Version: 1.8.0.8

=== Build Information ===

Release ID: 501020000
Git revision: 4574b1e5cf09f2e95e486c259bd9267a68c77cb3
Build date: 2014-07-02 20:50:40-04
Xamarin addins: fdea6fe3e36cda39291b39c81133e409c6d6f092

=== Operating System ===

Mac OS X 10.8.4
Darwin 360Logicas-Mac-mini.local 12.4.0 Darwin Kernel Version 12.4.0
    Sun Mar 10 18:01:10 PDT 2013
    root:xnu-2050.24.6~1/RELEASE_X86_64 x86_64
Comment 9 Mohit Kheterpal 2014-07-03 14:39:39 UTC
All directories are also shown in screencast given in comment 7

Screencast for all directories is given below :
http://screencast.com/t/kx6b4FOrKgb

Please let me know if I can provide something more useful.
Comment 10 Jonathan Pryor 2014-07-03 14:50:35 UTC
@Mohit: That was exactly what I was hoping for. :-)

Fix should be in monodroid-4.14-series/c59d102a4 and monodroid-4.12-series/163212a9.
Comment 11 Mohit Kheterpal 2014-07-07 11:50:24 UTC
There is no new build that has come since comment 7, perhaps the build failed? 

Hence, Reopening this issue.
Comment 12 Mohit Kheterpal 2014-07-07 13:44:44 UTC
I have checked this issue and now this issue does not exist i.e. after updating SDK to rev 23, I am able to build and deploy application successfully as shown in screencast : http://screencast.com/t/DXJWy1Z5Q

Hence closing this issue 

Thanks

Environment info :
=== Xamarin Studio ===

Version 5.1.2 (build 0)
Installation UUID: 449f40dd-b3f1-4028-9a6b-cca0d1a2307d
Runtime:
	Mono 3.4.0 ((no/954ed3c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000214

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 7.2.6.17 (Enterprise Edition)
Hash: 762ebac
Branch: 
Build date: 2014-07-03 15:53:37-0400

=== Xamarin.Android ===

Version: 4.12.6 (Enterprise Edition)
Android SDK: /Users/360logicaxamarinmacmini/Desktop/android-sdk-macosx
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.Mac ===

Version: 1.8.1.0

=== Build Information ===

Release ID: 501020000
Git revision: 4574b1e5cf09f2e95e486c259bd9267a68c77cb3
Build date: 2014-07-02 20:50:40-04
Xamarin addins: fdea6fe3e36cda39291b39c81133e409c6d6f092

=== Operating System ===

Mac OS X 10.8.4
Darwin 360Logicas-Mac-mini.local 12.4.0 Darwin Kernel Version 12.4.0
    Sun Mar 10 18:01:10 PDT 2013
    root:xnu-2050.24.6~1/RELEASE_X86_64 x86_64
Comment 13 Mohit Kheterpal 2014-07-08 06:14:10 UTC
*** Bug 21047 has been marked as a duplicate of this bug. ***