Calabash-Android Run / Resign给出错误

时间:2016-06-25 20:26:52

标签: calabash calabash-android

我正在尝试设置Calabash-android以运行测试应用程序,但不断收到以下错误。我不确定它是否与我设置的方式有关。任何建议都将不胜感激。

  

/usr/local/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/calabash-android/dependencies.rb:220:in std::back_inserter platform_directory'       来自/usr/local/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/calabash-android/dependencies.rb:247:in basename': no implicit conversion of nil into String (TypeError) from /usr/local/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/calabash-android/dependencies.rb:220:in setup'       来自/usr/local/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/calabash-android/operations.rb:30:in locate_android_dependencies' from /usr/local/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/calabash-android/dependencies.rb:125:in require'       来自/usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in <top (required)>' from /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in build_test_server_if_needed'       来自/usr/local/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/bin/calabash-android-run.rb:16:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/calabash-android/helpers.rb:104:in'       来自/ usr / local / bin / calabash-android:23:in calabash_run' from /usr/local/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/bin/calabash-android:84:in'

1 个答案:

答案 0 :(得分:0)

您需要设置ANDROID_HOME环境变量。如果您已经这样做了,那么可能存在如何配置它的问题。

此错误带来的calabash代码位使用sdk目录 - https://github.com/calabash/calabash-android/blob/master/ruby-gem/lib/calabash-android/dependencies.rb#L214