0

我试图运行 calabash-android .. 出现如下错误..

No test server found for this combination of app and calabash version. Recreatin
g test server.
2013-06-11 18:08:22 - "/bin/keytool.exe" -v -list -alias samplekey -keystore "c:
/testproject/calabash/sample" -storepass sample
C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.6/lib/calabash-android/
helpers.rb:140:in ``': No such file or directory - "/bin/keytool.exe" -v -list -
alias samplekey -keystore "c:/testproject/calabash/sample" -storepass sample (Er
rno::ENOENT)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.6/lib/cala
bash-android/helpers.rb:140:in `fingerprint_from_keystore'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.6/bin/cala
bash-android-build.rb:3:in `calabash_build'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.6/lib/cala
bash-android/helpers.rb:49:in `build_test_server_if_needed'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.6/bin/cala
bash-android-run.rb:16:in `calabash_run'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.6/bin/cala
bash-android:76:in `<top (required)>'
        from C:/Ruby193/bin/calabash-android:23:in `load'
        from C:/Ruby193/bin/calabash-android:23:in `<main>'

请有人帮助我如何在 Windows 上运行 calabash-android 示例应用程序。我是这个工具的新手。谢谢你的提前。

4

1 回答 1

1

您需要JAVA_HOME设置环境变量并将其添加到路径中。Calabash 正在寻找 keytool 来签署测试服务器 apk。确保您还ANDROID_HOME设置并添加到您的路径。

于 2013-06-11T20:17:33.197 回答