我正在尝试在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运行NetPocoCache.apk时,为什么它不起作用?我收到以下错误:
C:\ Users \ Anna \ workspace \ NetPocoCache \ bin> calabash-android run NetPocoCache.apk -v找不到此app组合的测试服务器 和葫芦版。重新创建测试服务器。 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:PrivateKeyEntryLõngdpÕ certifikatskedja:1 Certifikat [1]:─gare:CN = Android Debug,O = Android, C =USUtfõrdare:CN = Android Debug,O = Android,C = US Serienummer: 2d0236c8 GiltigtfrÕnden:Mon May 13 10:33:24 CEST 2013直到:5月3日 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 NamnpÕignaturalgoritm:SHA256withRSA 版本:3
Tillõgg:
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 -file 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 =USUtfõrdare:CN = Android Debug,O = Android,C = US Serienummer:2d0236c8 GiltigtfrÕnden:Mon May 13 10:33:24 CEST 2013 截止时间:5月6日星期三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 NamnpÕignaturalgoritm:SHA256withRSA 版本:3
Tillõgg:
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:在
`': 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
清单” 来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:12:in calabash_build中package_name' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-build.rb:21:in
阻止(2个级别) 来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-build.rb:17:in calabash_build中的chdir' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-build.rb:17:in
阻止 来自C:/Ruby200-x64/lib/ruby/2.0.0/tmpdir.rb:88:inmktmpdir' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-build.rb:16:in
calabash_build' 来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-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
负载” 来自C:/ Ruby200-x64 / bin / calabash-android:23:in''
答案 0 :(得分:1)
确保您拥有所有必需的可执行文件:C:\ Program Files \ Java \ jdk1.7.0_21
您可以通过从CMD执行java -version
来测试找到的Java。
您还需要将JRE添加到路径,以便找到程序javaw等。
您可以通过从CMD执行javaw
来测试是否找到了Javaw。
我还没有使用calabash来处理Ruby 2.0,但1.8.7对我有用。
(Ruby 2.0给我一个小黄瓜错误)
您再次可以通过从CMD执行ruby -version
来测试找到Ruby。
除此之外,您的路径似乎正确
答案 1 :(得分:0)
在mac机器上,以下步骤应该解决它(我遇到了类似的问题):