gpt4 book ai didi

android - 如何在 Windows 中安装葫芦?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:04:24 25 4
gpt4 key购买 nike

过去 3 天我一直在尝试在 Windows 中安装 calabash-cucumber 和 calabash-android。我还在环境中设置了 ruby​​ 路径变量。但是我遇到了以下错误..

C:\>gem 安装 cucumber 错误如下所示,

ERROR:  Could not find a valid gem 'cucumber' (>= 0) in any repository

错误:执行 gem 时...(Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT:连接尝试失败,因为连接方 di一段时间后没有正常响应,或者建立连接失败因为连接的主机未能响应。 - 连接(2)(http://rubygems.org/latest_specs.4.8.gz)

C:\>gem install calabash-android

错误如下,

ERROR:  Could not find a valid gem 'calabash-android' (>= 0) in any repository

错误:执行 gem 时...(Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT:连接尝试失败,因为连接方 di一段时间后没有正常响应,或者建立连接失败因为连接的主机未能响应。 - 连接(2)(http://rubygems.org/latest_specs.4.8.gz)

我是 calabash 移动自动化测试的新手。请任何人帮助解决这个问题。我急切地学习葫芦移动自动化工具。感谢您的提前..

最佳答案

这些是我采取的步骤,我可以在使用 Windows 7 64 位的 Android 设备上成功运行葫芦测试:

安装 Ant (1.9)
http://ant.apache.org/

安装 ruby
http://rubyinstaller.org/
安装 1.9.3 版本(还不是 2.0.0 或更高版本)。

安装 Ruby DevKit
http://rubyinstaller.org/downloads
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

安装葫芦
https://github.com/calabash/calabash-android/blob/master/documentation/installation.md

确保路径设置正确。请务必按照上述网页上的说明进行操作。

也许您的互联网连接或远程服务器暂时出现故障,但一切都应该可以。

关于android - 如何在 Windows 中安装葫芦?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16828513/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com