`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

  • docker push - access not authorized
  • Mesosphere local development
  • Docker hello world not working
  • Running Jenkins in a Docker Container
  • A better way to deploy a Debian-python hybrid application
  • Does Kubernetes (local Docker method) really work?
  • Magento 2 on docker - no css loaded
  • docker-machine ssh on AWS
  • Can't discover docker container on user defined network
  • Following the Get Started: Stack server stuck loading page endlessly
  • “Invalid configuration for registry” error when executing “eb local run”
  • How to use docker-machine on a private server?
  • 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.