`package_name': 'package' not found in aapt output (RuntimeError) while running calabash in docker

I got the error response package_name’: ‘package’ not found in aapt output (RuntimeError) when I run the calabash-android in docker file. Can anyone please tell me why it is happening like this. The full error response is pasting below.

sh: 1: /usr/local/android-sdk/build-tools/19.1.0/aapt: not found
/usr/local/bundle/gems/calabash-android-0.7.2/lib/calabash-android/helpers.rb:18:in `package_name': 'package' not found in aapt output (RuntimeError)
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:42:in `block (2 levels) in calabash_build'
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:38:in `chdir'
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:38:in `block in calabash_build'
from /usr/local/lib/ruby/2.3.0/tmpdir.rb:89:in `mktmpdir'
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:37:in `calabash_build'
from /usr/local/bundle/gems/calabash-android-0.7.2/lib/calabash-android/helpers.rb:106:in `build_test_server_if_needed'
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-run.rb:16:in `calabash_run'
from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android:84:in `<top (required)>'
from /usr/local/bundle/bin/calabash-android:22:in `load'
from /usr/local/bundle/bin/calabash-android:22:in `<main>'

Since I haven’t integrated calabash-android in docker before could not figure out the exact issue. All kinda helps are appreciated. Thanks

  • How to place secure file in rancher storage?
  • X11 forwarding with PyCharm and Docker Interpreter
  • Installing maven in a docker build overrides JAVA 8 with JAVA 7(!)
  • Ahow to use multiple terminals in the docker container?
  • docker + django : loop + break using forms
  • docker install nsenter , command not found
  • Getting SequelizeConnectionRefusedError: when running docker with sequelize
  • installing cPickle with python 3.5
  • Jenkins and docker: uri was not specified
  • What is the purpose of putting Wordpress in a Docker container [closed]
  • Scaling Azure Container Service with private ports on containers
  • Automation of docker pull via scala
  • 2 Solutions collect form web for “`package_name': 'package' not found in aapt output (RuntimeError) while running calabash in docker”

    Reading the error message, it looks like the android tools are not installed in your container.

    The issue raises since the android dependencies are not installed.

    I fixed the issue by installing the dependencies. And the command to install the dependencies is apt-get install lib32stdc++6 lib32z1 lib32z1-dev

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.