执行和calabash程序时出错

时间:2015-05-06 05:24:38

标签: android ruby cucumber calabash calabash-android

我收到此错误:

  

D:> calabash-android运行d:\ Android \ Apk_Files \ EriBank.apk   C:/Ruby21/lib/ruby/2.1.0/rubygems/dependency.rb:298:在to_specs': Could not find 'cucumber' (~> 1.3.17) - did find: [cucumber-2.0.0] (Gem::LoadError) from C:/Ruby21/lib/ruby/2.1.0/rubygems/specification.rb:1295:in块n中   activate_dependencies'           来自C:/Ruby21/lib/ruby/2.1.0/rubygems/specification.rb:1284:in each' from C:/Ruby21/lib/ruby/2.1.0/rubygems/specification.rb:1284:in activa   e_dependencies'           来自C:/Ruby21/lib/ruby/2.1.0/rubygems/specification.rb:1266:activa e' from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:54:in ge'           来自C:/ Ruby21 / bin / calabash-android:22:在`'

1 个答案:

答案 0 :(得分:1)

它抱怨你的黄瓜宝石版本,你应该将它降级到1.3.17或1.3.19。

要降级,请执行

gem uninstall cucumber
gem install cucumber -v 1.3.19