【问题标题】:No test server found for this combination of app and calabash version. Recreatin g test server找不到此应用程序和葫芦版本组合的测试服务器。重新创建测试服务器
【发布时间】:2015-04-11 00:24:32
【问题描述】:

我试图运行 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 示例应用程序。我是这个工具的新手。感谢您的提前。

【问题讨论】:

  • 您是否设置了 ANDROID_HOME 变量?命令echo %ANDROID_HOME%的输出是什么?
  • keytool.exe 在哪里? “/bin/keytool.exe”听起来不像是一个合理的位置。是 ../bin/keytool.exe 吗?你能发布你正在使用的确切命令吗?

标签: android ios calabash


【解决方案1】:

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

【讨论】:

  • 嗨 varun:我已经添加了 android_home 添加:c:\android\sdk 和 java_home 添加了:C:\Program Files\Java\jdk1.6.0_45\bin。
  • 所以您创建了一个环境变量,但您是否将其添加到路径中?只需在 cmd 提示符下键入 keytool 并查看它的内容。
  • 让您的java_home 像C:\Program Files\Java\jdk1.6.0_45 一样,并将%java_home%/bin 添加到您的路径中。
  • 嗨 Varun,我只设置了这样的 java home。现在它正在工作..感谢您分享您的经验。
猜你喜欢
  • 2015-09-12
  • 1970-01-01
  • 2010-12-05
  • 2016-01-02
  • 2010-09-07
  • 1970-01-01
  • 2011-07-22
  • 2018-12-31
  • 1970-01-01
相关资源
最近更新 更多