我想从Windows 7计算机设置Calabash Android进行APK测试。我已经安装了Android Studio
,Ruby
和JA enter code here
VA JDK
。我还正确设置了环境变量。以下是
C:Usersusername>ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]
C:Usersusername>gem -v
2.6.13
C:Usersusername>java -version
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
我已经成功地生成了钥匙店,并成功完成了Calabash设置。但是在辞职期间,我要低于错误。
C:calabash-test-androidAutomation>bundle exec calabash-android resign
C:calabash-test-androidAutomationUAT-release.apk
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/calabash-android-0.9.0/lib/calabash-
android/java_keystore.rb:60:in `sign_apk': Could not sign app:
C:/Users/TEST~1.SAD/AppData/Local/Temp/d20171204-8720-1yhtd9r/unsigned.apk
(RuntimeError)
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/calabash-android-0.9.0/lib/c
alabash-android/helpers.rb:164:in `sign_apk'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/calabash-android-0.9.0/lib/c
alabash-android/helpers.rb:119:in `block in resign_apk'
from C:/Ruby24-x64/lib/ruby/2.4.0/tmpdir.rb:89:in `mktmpdir'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/calabash-android-0.9.0/lib/c
alabash-android/helpers.rb:113:in `resign_apk'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/calabash-android-0.9.0/bin/c
alabash-android:133:in `<top (required)>'
from C:/Ruby24-x64/bin/calabash-android:23:in `load'
from C:/Ruby24-x64/bin/calabash-android:23:in `<main>'
推荐的Ruby版本为Calabash Gems 2.3.1。您应该降级到此版本,然后使用最新的calabash-android宝石(0.9.2)重试。