为了让calabash-android对apk文件进行签名,我正在尝试找出我遗漏了什么。任何帮助都是非常感谢的。控制台日志如下。当前运行Mac OS X 10.9
Last login: Thu Jan 23 09:25:44 on console
xxxxx2m3:~ xxxxx2$ echo $ANDROID_HOME
/Users/xxxxx2/android/android-sdk/sdk
xxxxx2m3:Calabash_Automation xxxxx2$ calabash-android resign android-app.apk
/Users/xxxxx2/.rvm/gems/ruby-2.1.0@global/gems/calabash-android-0.4.18/lib/calabash-android/helpers.rb:102:in `sign_apk': private method `sign_apk' called for nil:NilClass (NoMethodError)
from /Users/xxxxx2/.rvm/gems/ruby-2.1.0@global/gems/calabash-android-0.4.18/lib/calabash-android/helpers.rb:82:in `block in resign_apk'
from /Users/xxxxx2/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/tmpdir.rb:88:in `mktmpdir'
from /Users/xxxxx2/.rvm/gems/ruby-2.1.0@global/gems/calabash-android-0.4.18/lib/calabash-android/helpers.rb:76:in `resign_apk'
from /Users/xxxxx2/.rvm/gems/ruby-2.1.0@global/gems/calabash-android-0.4.18/bin/calabash-android:107:in `<top (required)>'
from /Users/xxxxx2/.rvm/rubies/ruby-2.1.0/bin/calabash-android:23:in `load'
from /Users/xxxxx2/.rvm/rubies/ruby-2.1.0/bin/calabash-android:23:in `<main>'
from /Users/xxxxx2/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/xxxxx2/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
xxxxx2m3:Calabash_Automation xxxxx2$ android
xxxxx2m3:Calabash_Automation xxxxx2$ calabash-android build android-app.apk
No keystores found.
Please create one or run calabash-android setup to configure calabash-android to use an existing keystore.
xxxxx2m3:Calabash_Automation xxxxx2$ calabash-android setup
Please enter keystore information to use a custom keystore instead of the default
Please enter keystore location
Please enter the password for the keystore
Please enter the alias
Saved your settings to .calabash_settings. You can edit the settings manually or run this setup script again
xxxxx2m3:Calabash_Automation xxxxx2$ 任何帮助都将不胜感激。这让我沮丧了一段时间。
发布于 2014-03-20 00:28:35
看一看https://github.com/calabash/calabash-android/wiki/Running-Calabash-Android
在那里,它解释了如何恢复应用程序。使用calabash-android设置别名并设置以下内容:- keystore location:~/.android/debug.keystore -:android -:
发布于 2014-02-14 00:07:55
我有一个名为calabash-settings的文件,其内容如下:
{"keystore_location":"...","keystore_password":"...","keystore_alias":"..."}
在我执行calabash的文件夹中
https://stackoverflow.com/questions/21318802
复制相似问题