我正在尝试在 Windows 8 上运行 calabash-android。我已经安装了 Ruby 2.0.0 并添加了以下路径(系统变量):
ANDROID_HOME = C:\Development\adt-bundle-windows-x86_64-20130219\adt-bundle-windows-x86_64-20130219\sdk
ANT_HOME = C:\Program Files\apache-ant-1.9.0-src\apache-ant-1.9.0\apache-ant-1.9.0-bin\apache-ant-1.9.0
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_21
Path = C:\Ruby200-x64\bin; C:\Program Files\apache-ant-1.9.0-src\apache-ant-1.9.0\apache-ant-1.9.0-bin\apache-ant-1.9.0\bin
为什么我在命令行中输入 calabash-android run NetPocoCache.apk 不起作用?我收到以下错误:
C:\Users\Anna\workspace\NetPocoCache\bin>calabash-android run NetPocoCache.apk -v No test server found for this combination of this app and calabash version. 重新创建测试服务器。2013-05-13 12:01:12 - "C:\Program Files\Java\jdk1.7.0_21/bin/keytool.exe" -v -list -alias androiddebugkey -keystore "C:/Users/Anna/.android /debug.keys tore" -storepass android 2013-05-13 12:01:12 - Aliasnamn: androiddebugkey Skapat den: 2013-maj-13 Posttyp: PrivateKeyEntry Lõngd pÕ certifikatskedja: 1 Certifikat[1]: ─gare: CN=Android Debug, O=Android, C=US Utfõrdare: CN=Android Debug, O=Android, C=US Serienummer: 2d0236c8 Giltigt 日期: Mon May 13 10:33:24 CEST 2013 until: Wed May 06 10:33:24 CEST 2043 Certifikatets fingeravtryck: MD5: 02:35:0D:D6:DA:3A:7D:B1:C7:29:43:B2:77:91:6F:48 SHA1: C2:45:61:B9:66: 58:D6:
蒂尔格:
1: ObjectId: 2.5.29.14 Criticality=false SubjectKeyIdentifier [ KeyIdentifier [ 0000: 3F 74 AD 07 92 A3 17 06 9E C0 AF 19 DC E4 E1
3D ?t.............= 0010: 24 AA 97 24
$..$ ] ]2013-05-13 12:01:12 - 密钥库的 MD5 指纹(“C:/Users/Anna/.android/debug.keystore”):02:35:0D:D6:DA:3A:7D:B1:C7 :29:43:B2:77:91:6F:48 2013-05-13 12:01:12 - "C:\Program Files\Java\jdk1.7.0_21/bin/keytool.exe" -v -printcert -文件 C:/Users/Anna/AppData/Local/Temp/d20130513-2828-sej8xs/M ETA-INF/CERT.RSA 2013-05-13 12:01:12 - ─gare: CN=Android Debug, O=Android , C=US Utfõrdare: CN=Android Debug, O=Android, C=US Serienummer: 2d0236c8 Giltigt frÕn den: Mon May 13 10:33:24 CEST 2013 until: Wed May 06 10:33:24 CEST 2043 Certifikatets fingeravtryck: MD5: 02:35:0D:D6:DA:3A:7D:B1:C7:29:43:B2:77:91:6F:48 SHA1: C2:45:61:B9:66:58:D6:4A :9D:F8:A4:AF:14:9B:EA:F5:23:81:47:E8 SHA256: 9F:82:C4:B1:B3:44:4A:7E:F3:44:8B:AD: 7A:E5:07:30:F6:72:C5:EA:8E:C8:34:D9:F5:29:F5:F3:4C:92:0E:03 Namn pÕ 签名算法:SHA256withRSA 版本:3
蒂尔格:
1: ObjectId: 2.5.29.14 Criticality=false SubjectKeyIdentifier [ KeyIdentifier [ 0000: 3F 74 AD 07 92 A3 17 06 9E C0 AF 19 DC E4 E1
3D ?t.............= 0010: 24 AA 97 24
$..$ ] ]2013-05-13 12:01:12 - 用于签署证书的 MD5 指纹(C:/Users/Anna/workspace/NetPocoCache/bin/NetPocoCache.apk):02:35:0D:D6:DA:3A:7D:B1 :C7:29:43:B 2:77:91:6F:48 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/lib/calabash-android/ helpers.rb:29:in
`': No such file or directory - java -jar "C:/Ru by200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/lib/calabash-android/lib/manifest_extractor.jar" "C:/Users/Anna/workspace/NetPocoCache/bin/N etPocoCache.apk" (Errno::ENOENT) from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:29:in
manifest' 来自 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:12:inpackage_name' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-build.rb:21:in
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-build.rb:17:inchdir' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-build.rb:17:in
块中的 calabash_build 块(2 级)在 c:/Ruby200-x64/lib/ruby/2.0.0/tmpdir.rb:88 中的 calabash_buildmktmpdir' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-build.rb:16:in
' 中:来自 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-的 calabash_build' android-0.4.4/lib/calabash-android/helpers.rb:49:inbuild_test_server_if_needed' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-run.rb:16:in
Calabash_run' 来自 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android:76:in<top (required)>' from C:/Ruby200-x64/bin/calabash-android:23:in
load' 来自 C:/Ruby200-x64/bin /calabash-android:23:in `'