Skip to content

Running Calabash Android

Joshua Moody edited this page Jun 25, 2019 · 17 revisions

The apk calabash android runs must be signed with the same keystore as the test-server.

Use the command: calabash-android resign <apk> to resign your application.

Building the test-server using calabash-android build <apk> will build the test-server and sign it with the same key as the application you are testing.

If debug.keystore is missing, it be recreated with the following command:

keytool -genkey -alias androiddebugkey
-keystore ~/.android/debug.keystore
-storetype PKCS12
-keyalg RSA
-storepass android
-keysize 2048
-dname "CN=Android Debug,O=Android,C=US"

Alternatively, you can use calabash-android setup to tell calabash where to find the keystore that was used to sign your application. This means your app does not need re-signing, and API keys that rely on the fingerprint of the signing keystore will continue to work under calabash.

Clone this wiki locally