Bug 20992 - error in androidZipAlign
Summary: error in androidZipAlign
Status: RESOLVED DUPLICATE of bug 20911
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.12.4
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2014-07-01 04:26 UTC by renan jegouzo
Modified: 2014-07-01 16:55 UTC (History)
3 users (show)

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


Attachments
complete build log (492.60 KB, text/plain)
2014-07-01 04:26 UTC, renan jegouzo
Details
project file (537.73 KB, application/octet-stream)
2014-07-01 08:09 UTC, renan jegouzo
Details


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:
RESOLVED DUPLICATE of bug 20911

Description renan jegouzo 2014-07-01 04:26:36 UTC
Created attachment 7241 [details]
complete build log

I'm using version 4.12.5

file chaoDroid.chaoDroid-Signed-Unaligned.apk exists (640Mb)

part of the log:

Target _Sign needs to be built as output file 'bin/Debug/chaoDroid.chaoDroid-Signed.apk' does not exist.
	
	Target _Sign:
	Target _Sign needs to be built as output file 'bin/Debug/chaoDroid.chaoDroid-Signed.apk' does not exist.
	Task "AndroidSignPackage"
		Using task AndroidSignPackage from Xamarin.Android.Tasks.AndroidSignPackage, Xamarin.Android.Build.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
		Tool /usr//bin/jarsigner execution started with arguments: -keystore "/Users/renanyoy/.local/share/Xamarin/Mono for Android/debug.keystore" -storepass android -keypass android -digestalg SHA1 -sigalg md5withRSA -signedjar bin/Debug/chaoDroid.chaoDroid-Signed-Unaligned.apk obj/Debug/android/bin/chaoDroid.chaoDroid.apk androiddebugkey 
		Tool /usr//bin/jarsigner execution finished.
	Done executing task "AndroidSignPackage"
	Task "Message"
		Using task Message from Microsoft.Build.Tasks.Message, Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
		Signed android package 'bin/Debug/chaoDroid.chaoDroid-Signed.apk'
	Done executing task "Message"
	Task "Delete"
		Using task Delete from Microsoft.Build.Tasks.Delete, Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
	Done executing task "Delete"
	Task "AndroidZipAlign"
		Using task AndroidZipAlign from Xamarin.Android.Tasks.AndroidZipAlign, Xamarin.Android.Build.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
		AndroidZipAlign Task
		  Alignment: 4
		  Source: bin/Debug/chaoDroid.chaoDroid-Signed-Unaligned.apk
		  Destination: bin/Debug/chaoDroid.chaoDroid-Signed.apk
		Tool /Users/renanyoy/android sdk//tools/zipalign execution started with arguments: 4 "bin/Debug/chaoDroid.chaoDroid-Signed-Unaligned.apk" "bin/Debug/chaoDroid.chaoDroid-Signed.apk" 
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Error executing tool '/Users/renanyoy/android sdk//tools/zipalign': ApplicationName='/Users/renanyoy/android sdk//tools/zipalign', CommandLine='4 "bin/Debug/chaoDroid.chaoDroid-Signed-Unaligned.apk" "bin/Debug/chaoDroid.chaoDroid-Signed.apk" ', CurrentDirectory='/Users/renanyoy/git/aestesis-mono/auth/chaoDroid', Native error= Cannot find the specified file
	Task "AndroidZipAlign" execution -- FAILED
	Done building target "_Sign" in project "/Users/renanyoy/git/aestesis-mono/auth/chaoDroid/chaoDroid.csproj".-- FAILED
Comment 1 Sadik Ali 2014-07-01 04:56:29 UTC
I can't reproduce this, we may have to see if a developer can figure out what's going on from the stack trace. If you have a chance, could you please attach the sample application and provide few test steps so that we can reproduce this issue at our end.
Comment 2 renan jegouzo 2014-07-01 08:09:06 UTC
Created attachment 7247 [details]
project file

the project is a really big project, and I have no rights from the asset producers to do that. I have attached the project file.

the steps:

- clear all
- build project
Comment 3 renan jegouzo 2014-07-01 16:47:30 UTC
I fixed the problem by copying the zipalign tool from 
/Users/renanyoy/android sdk/build-tools/20.0.0
to 
/Users/renanyoy/android sdk/tools/

but it's not the right location for it, idk why your build system search it at a wrong place.
Comment 4 renan jegouzo 2014-07-01 16:49:17 UTC
I'm really bored by all your bugs, all time..
Comment 5 PJ 2014-07-01 16:55:00 UTC
Hi Renan,

Hopefully, we'll alleviate your boredom on this one soon. This is an issue introduced by the latest update from Android, which moved the zipalign tool's path (just as you describe in comment 3).

We will be hotfixing Xamarin.Android as soon as we get the builds together and can get it through testing.

I'm going to mark this as a duplicate of the bug we're using to track the issue, but it is a private bug so you will be unable to see the contents. 

Sorry for the inconvenience, and do let us know about any other issues you're experiencing.

*** This bug has been marked as a duplicate of bug 20911 ***