简体   繁体   中英

Robotium: How an .apk app can be re-signed in order to test it with Robotium?

I'm just trying to test an android application using Robotium. The issue I have is that I don't manage to re-sign the application in order to start a test project in Eclipse. I've followed the tutorial from http://code.google.com/p/robotium/wiki/RobotiumForAPKFiles but with no success.

  1. I've generated a .keystore file: keytool -genkey -v -keystore myCertificate1.keystore -alias myKey1 -keyalg RSA -keysize 2048 -validity 20000
  2. Running the jarsigner command: jarsigner -verbose -keystore Certificate1.keystore path\\appname.apk Key1
  3. And I've got an error: Certificate chain not found for: Key1. Key1 must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.

Could anyone point me in any direction ?

"myKey1"新密钥"myKey1"别名"myKey1" ,然后尝试使用"Key1"签名(我认为),该密钥要么不存在,要么至少引用了错误的密钥。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM