简体   繁体   中英

`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

阅读错误消息后,您的容器中似乎未安装android工具。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM