Bug 10852 - Cannot execute zipalign on a clean install
Summary: Cannot execute zipalign on a clean install
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.8.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-03-03 12:18 UTC by Alan McGovern
Modified: 2013-05-22 14:53 UTC (History)
2 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:
RESOLVED FIXED

Description Alan McGovern 2013-03-03 12:18:57 UTC
I just did a clean install of my system and ran the universal installer. When i try to deploy to an emulator I get this error:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Error executing tool '/Users/alan/Library/Developer/Xamarin/android-sdk-mac_x86/tools/zipalign': ApplicationName='/Users/alan/Library/Developer/Xamarin/android-sdk-mac_x86/tools/zipalign', CommandLine='4 "bin/Debug/RdioCollectionEditor.RdioCollectionEditor-Signed-Unaligned.apk" "bin/Debug/RdioCollectionEditor.RdioCollectionEditor-Signed.apk" ', CurrentDirectory='/Users/alan/Projects/RdioCollectionEditor/RdioCollectionEditor', Native error= Cannot find the specified file (RdioCollectionEditor)

with this msbuild diagnostic output: https://gist.github.com/alanmcgovern/4afdf102706fae5905cd
Comment 1 Alan McGovern 2013-03-03 12:20:25 UTC
If i try to start an emulator anyway i get this error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: ApplicationName='/Users/alan/Library/Developer/Xamarin/android-sdk-mac_x86/tools/emulator', CommandLine='-partition-size 512 -avd "MonoForAndroid_API_15" -prop "monodroid.avdname=MonoForAndroid_API_15" ', CurrentDirectory='', Native error= Cannot find the specified file
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00352] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/System/System.Diagnostics/Process.cs:1103 
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00096] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/System/System.Diagnostics/Process.cs:1167 
  at System.Diagnostics.Process.Start () [0x0002c] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/System/System.Diagnostics/Process.cs:1177 
  at MonoDevelop.Core.Execution.ProcessWrapper.Start () [0x00007] in /Users/alan/Projects/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs:27 
  at (wrapper remoting-invoke-with-check) MonoDevelop.Core.Execution.ProcessWrapper:Start ()
  at MonoDevelop.Core.Execution.ProcessService.StartProcess (System.Diagnostics.ProcessStartInfo startInfo, MonoDevelop.Core.Execution.ProcessEventHandler outputStreamChanged, MonoDevelop.Core.Execution.ProcessEventHandler errorStreamChanged, System.EventHandler exited) [0x000c8] in /Users/alan/Projects/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs:163 
  at MonoDevelop.Core.Execution.ProcessService.StartProcess (System.Diagnostics.ProcessStartInfo startInfo, System.IO.TextWriter outWriter, System.IO.TextWriter errorWriter, System.EventHandler exited) [0x0000f] in /Users/alan/Projects/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs:124 
  at MonoDevelop.MonoDroid.AndroidToolbox.StartProcess (System.String name, System.String args, System.IO.TextWriter outputLog, System.IO.TextWriter errorLog) [0x00052] in /Users/alan/Projects/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Adb/AndroidToolbox.cs:124 
  at MonoDevelop.MonoDroid.AndroidToolbox.StartAvd (Mono.AndroidTools.AndroidVirtualDevice avd) [0x00073] in /Users/alan/Projects/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Adb/AndroidToolbox.cs:155 
  at MonoDevelop.MonoDroid.VirtualDeviceManager.StartEmulator (Mono.AndroidTools.AndroidVirtualDevice avd) [0x00007] in /Users/alan/Projects/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Adb/VirtualDeviceManager.cs:105 
  at MonoDevelop.MonoDroid.Gui.DeviceChooserDialog.<DeviceChooserDialog>m__28 (System.Object , System.EventArgs ) [0x00043] in /Users/alan/Projects/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Gui/DeviceChooserDialog.cs:71 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00064] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:231 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00079] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:239 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System.Reflection/MethodBase.cs:101 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000d5] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System/Delegate.cs:424 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System/MulticastDelegate.cs:72 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System/Delegate.cs:398 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
Comment 2 Jonathan Pryor 2013-05-22 14:53:44 UTC
This was caused because of an installer bug in which `zipalign` (and other programs) would be installed but they weren't +x (executable).

I believe it has been fixed; if it hasn't, please re-open.