gpt4 book ai didi

android - Calabash-Android 运行文件未找到

转载 作者:行者123 更新时间:2023-11-30 03:36:59 27 4
gpt4 key购买 nike

我正在尝试在 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 app and calabash version. Recreating test server. 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 frÕn den: Mon May 13 10:33:24 CEST 2013 till: 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Õ signaturalgoritm: SHA256withRSA Version: 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 fingerprint for keystore ("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=US Utfõrdare: CN=Android Debug, O=Android, C=US Serienummer: 2d0236c8 Giltigt frÕn den: Mon May 13 10:33:24 CEST 2013 till: 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Õ signaturalgoritm: SHA256withRSA Version: 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 fingerprint for signing cert (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' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:12:in 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
block (2 levels) in calabash_build' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-build.rb:17:in chdir'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/bin/calabash-android-build.rb:17:in
block in calabash_build' from C:/Ruby200-x64/lib/ruby/2.0.0/tmpdir.rb:88:in mktmpdir'
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' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:49:in build_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' from 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' from C:/Ruby200-x64/bin/calabash-android:23:in `'

最佳答案

确保您拥有所有必要的可执行文件:C:\Program Files\Java\jdk1.7.0_21您可以通过从 CMD 执行 java -version 来测试是否找到了 Java。

您还需要将 JRE 添加到您的路径,以便找到程序 javaw 等。您可以通过从 CMD 执行 javaw 来测试是否找到了 Javaw。

我还没有让葫芦在 Ruby 2.0 上工作,但是 1.8.7 对我有用。(Ruby 2.0 给我一个小 cucumber 错误)同样,您可以通过从 CMD 执行 ruby -version 来测试是否找到了 Ruby。

除此之外,您的路径似乎是正确的

关于android - Calabash-Android 运行文件未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16519702/

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