无法在密钥库中列出证书。可能是因为密码不正确 [英] Could not list certificates in keystore. Probably because the password was incorrect
本文介绍了无法在密钥库中列出证书。可能是因为密码不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在docker文件中运行calabash-android,并且在运行calabash测试时出现错误
I am running calabash-android in a docker file and when I run the calabash test I got the error
/usr/local/bundle/gems/calabash-android-0.7.2/lib/calabash-android/java_keystore.rb:6:in `initialize': No such keystore file '/home/core/Android/debug.keystore' (RuntimeError)
我已经尝试过这并且对我不起作用。
I have tried this this and not working for me.
编辑
设置路径后,错误类似于
After setting up the path the error is like
/lib/calabash-android/java_keystore.rb:32:in `initialize': Could not list certificates in keystore. Probably because the password was incorrect. (RuntimeError)
推荐答案
可以通过导航到 /。android 目录并删除debug.keystore文件(如果存在),然后尝试命令
It can be fixed by navigating to the /.android directory and remove the debug.keystore file if exist one and go try the command
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000
,然后导航到功能文件所在的目录,并使用命令
And following that navigate to the directory where the feature files exist and setup the calabash android by using the command
calabash-android setup
使用命令
calabash-android resign <apk path>
最后我们可以使用命令运行测试
And finally we can run the test by using the command
calabash-android run <apk path>
这篇关于无法在密钥库中列出证书。可能是因为密码不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文