2016-03-23 126 views
0

我试图在RubyMine中运行一些calabash测试,以测试以前生成的.apk文件。试图运行android calabash测试时出现密钥库错误

当我尝试运行所有功能时,弹出以下错误消息。我使用AndroidStudio创建了.apk文件,但未指定某个密钥库,因此我猜想使用了“默认”debug.keystore

No MD5 fingerprint found: 
    Keytool Error: java.lang.Exception: Keystore file does not exist: X:/.android/debug.keystore 
java.lang.Exception: Keystore file does not exist: X:/.android/debug.keystore 
    at sun.security.tools.KeyTool.doCommands(KeyTool.java:738) 
    at sun.security.tools.KeyTool.run(KeyTool.java:340) 
    at sun.security.tools.KeyTool.main(KeyTool.java:333) 
(RuntimeError) 

据我知道测试提供密钥库是一样的一个建筑.apk文件时使用的,这应该是debug.keystore在我.android文件夹,因为它是唯一一个出现在我的电脑。

我不知道为什么keytool试图找到X:/驱动器上的密钥存储文件,而不是D:/驱动器,其中debug.keystore存在。

有什么办法告诉keytool(或RubyMine)要使用哪个密钥库?或者可能还有另一个我不知道的问题?任何提示或帮助,将不胜感激。

注意:当使用旧的.apk文件时,我能够运行测试。只有当我在android代码中做了一些更改并再次构建应用程序时,尝试运行测试时发生错误。

回答

0

我们尝试自动检测密钥库。您可以使用calabash-android设置来指定您的密钥库。从测试工作目录运行命令。

+0

运行'calabash-android setup'时我只得到提示的使用情况,但没有进一步的任何想法呢? – daco

+0

搞定了,谢谢! – daco

相关问题