Calabash Android installation issues

546 views
Skip to first unread message

Kailash More

unread,
Apr 14, 2016, 7:34:25 AM4/14/16
to calabash-android
Hi Friends,

I was trying to setup Calabash-Android but found issues as mentioned below.  For iOS it was very much straight forward, but for Android its very difficult and complex

When i tried to run the .apk file from the command line i got this Error message :-

Things installed -
- Android SDK (Android Studio)
- Ruby version -  ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15]

=============
No test server found for this combination of app and calabash version. Recreating test server.
 WARN: Did not find 'adb' in any standard directory of '/Applications/android-sdk-macosx'. Calabash will therefore take longer to load
 WARN: Did not find 'aapt' in any standard directory of '/Applications/android-sdk-macosx'. Calabash will therefore take longer to load
 WARN: Did not find 'zipalign' in any standard directory of '/Applications/android-sdk-macosx'. Calabash will therefore take longer to load
ERROR: Could not locate Android dependency
ERROR: You can read about how Calabash is searching for an Android SDK and how you can help here:
/usr/local/lib/ruby/gems/2.2.0/gems/calabash-android-0.7.2/lib/calabash-android/dependencies.rb:229:in `locate_android_dependencies': Could not find 'adb' in '/Applications/android-sdk-macosx' (Calabash::Android::Environment::InvalidEnvironmentError)
from /usr/local/lib/ruby/gems/2.2.0/gems/calabash-android-0.7.2/lib/calabash-android/dependencies.rb:125:in `setup'
from /usr/local/lib/ruby/gems/2.2.0/gems/calabash-android-0.7.2/lib/calabash-android/operations.rb:30:in `<top (required)>'
from /usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/lib/ruby/gems/2.2.0/gems/calabash-android-0.7.2/lib/calabash-android/helpers.rb:104:in `build_test_server_if_needed'
from /usr/local/lib/ruby/gems/2.2.0/gems/calabash-android-0.7.2/bin/calabash-android-run.rb:16:in `calabash_run'
from /usr/local/lib/ruby/gems/2.2.0/gems/calabash-android-0.7.2/bin/calabash-android:84:in `<top (required)>'
from /usr/local/bin/calabash-android:23:in `load'
from /usr/local/bin/calabash-android:23:in `<main>'


Please if someone can help me in solving this issue.

Thanks
Kailash M

Praveen Reddy

unread,
Apr 14, 2016, 7:38:01 AM4/14/16
to calabash...@googlegroups.com

Can you try with ruby 1.9.3?

--
You received this message because you are subscribed to the Google Groups "calabash-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calabash-andro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joshua Moody

unread,
Apr 14, 2016, 8:59:47 AM4/14/16
to calabash...@googlegroups.com
Calabash Android is ruby >= 2.0 only.

Reading the error it looks like you need to install the android
developer tools.

Kailash More

unread,
Apr 14, 2016, 9:24:59 AM4/14/16
to calabash-android
Hi Joshua,

I am using Android Studio to build apps,  and I guess Android Developer tools are for Eclipse?

Correct me if I am wrong.

Thanks
Kailash 

Ovi B

unread,
Jul 5, 2016, 9:33:10 AM7/5/16
to calabash-android
I have the same problem. I am also using Android Studio on OSX. I get the same "could not find adb" error but when I check the directory, adb and all other tools are there. 

Mariano Mejia

unread,
Jun 24, 2019, 7:28:09 PM6/24/19
to calabash-android
1. As for the solution you need to know where is your Android SDK path, 
    for me i found under Android Studio > Preferences > See Android SDK Location:
2. export ANDROID_HOME=<Android SDK Location>
3. run now ex. bundle exec calabash-android console <APK file>
4. irb(main)> start_test_server_in_background
5. irb(main)> query("*")
6. see all display on screen those tested ids
Reply all
Reply to author
Forward
0 new messages