`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 upgrade Docker on Mac from boot2docker version?
  • Connect to a Service running inside a docker container from outside
  • Run specific configuration of WildFly Jboss on Docker
  • Docker quickstart terminal not opening
  • Executing docker run command from config file
  • Automated repository tests running even though disabled
  • set docker container env from daemon configuration file
  • docker container internal server applications
  • should I choose docker for isolated development of python? [closed]
  • Get Swarm node IP address from a container using API?
  • How to connect two HA group containers in Bluemix?
  • How to estimate the VM resources (CPU, RAM, HDD etc) with respect to Docker image size? My images are huge, 5-10 GB
  • 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.