尝试 运行 android 葫芦测试时出现密钥库错误
Keystore error when trying to run android calabash tests
我正在尝试 运行 在 RubyMine 中进行一些 calabash
测试,以测试之前构建的 .apk 文件。
当我尝试 运行 所有功能时,弹出以下错误消息。我用 AndroidStudio 构建了 .apk 文件,没有指定某个密钥库,所以我猜使用了 "default" 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 时使用的密钥库相同,它应该是我的 .android
文件夹中的 debug.keystore
,因为它我电脑上唯一的一个。
我不确定为什么 keytool
试图在 X:/
驱动器而不是 debug.keystore
所在的 D:/
驱动器上找到密钥库文件。
有什么方法可以告诉 keytool
(或 RubyMine)使用哪个密钥库?或者可能还有其他我不知道的问题?任何提示或帮助将不胜感激。
注意:我能够 运行 使用较旧的 .apk 进行测试。仅当我对 android 代码进行了一些更改并再次构建应用程序时,才在尝试 运行 测试时发生错误。
我们尝试自动检测密钥库。您可以只使用 calabash-android 设置来指定您的密钥库。 运行 来自测试工作目录的命令。
我正在尝试 运行 在 RubyMine 中进行一些 calabash
测试,以测试之前构建的 .apk 文件。
当我尝试 运行 所有功能时,弹出以下错误消息。我用 AndroidStudio 构建了 .apk 文件,没有指定某个密钥库,所以我猜使用了 "default" 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 时使用的密钥库相同,它应该是我的 .android
文件夹中的 debug.keystore
,因为它我电脑上唯一的一个。
我不确定为什么 keytool
试图在 X:/
驱动器而不是 debug.keystore
所在的 D:/
驱动器上找到密钥库文件。
有什么方法可以告诉 keytool
(或 RubyMine)使用哪个密钥库?或者可能还有其他我不知道的问题?任何提示或帮助将不胜感激。
注意:我能够 运行 使用较旧的 .apk 进行测试。仅当我对 android 代码进行了一些更改并再次构建应用程序时,才在尝试 运行 测试时发生错误。
我们尝试自动检测密钥库。您可以只使用 calabash-android 设置来指定您的密钥库。 运行 来自测试工作目录的命令。