Question

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 ?

Was it helpful?

Solution

You're giving your new key an alias "myKey1", but then you're trying to sign with "Key1" which (I presume) either does not exist or at the least reference the wrong key.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top