Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zipalign missing file issue #2

Closed
GokhanArik opened this issue Dec 29, 2016 · 2 comments
Closed

Zipalign missing file issue #2

GokhanArik opened this issue Dec 29, 2016 · 2 comments

Comments

@GokhanArik
Copy link

Zipalign is giving me this error:

/Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/helper/sh_helper.rb:36:in `popen': [!] No such file or directory - zipalign (Errno::ENOENT)
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/helper/sh_helper.rb:36:in `sh_control_output'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/helper/sh_helper.rb:10:in `sh'
	from /Users/admin/Projects/fno/fanx-android/fastlane/actions/zipalign.rb:23:in `run'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/runner.rb:227:in `block (2 levels) in execute_action'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/runner.rb:212:in `block in execute_action'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/runner.rb:211:in `chdir'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/runner.rb:211:in `execute_action'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/runner.rb:133:in `trigger_action_by_name'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
	from Fastfile:32:in `block in parsing_binding'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/commands_generator.rb:96:in `block (2 levels) in run'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-4.4.2/lib/commander/command.rb:178:in `call'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-4.4.2/lib/commander/command.rb:178:in `call'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-4.4.2/lib/commander/command.rb:153:in `run'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-4.4.2/lib/commander/runner.rb:446:in `run_active_command'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-4.4.2/lib/commander/delegates.rb:15:in `run!'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/commands_generator.rb:293:in `run'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/commands_generator.rb:36:in `start'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/fastlane/lib/fastlane/cli_tools_distributor.rb:59:in `take_off'
	from /Users/admin/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.1.3/bin/fastlane:5:in `<top (required)>'
	from /Users/admin/.fastlane/bin/bundle/bin/fastlane:22:in `load'
	from /Users/admin/.fastlane/bin/bundle/bin/fastlane:22

any idea of what the problem is?

@nomisRev
Copy link
Contributor

nomisRev commented Jan 8, 2017

zipalign is not on your $PATH. And thus fastlane cannot find the zipalign command. It can be found @ $ANDROID_HOME/build-tools/25.0.1. Once you place the zipalign dir on your $PATH it should work fine.

@GokhanArik
Copy link
Author

Thanks! Looks like Android moved it from tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants