Skip to content
alexjo edited this page Oct 9, 2014 · 8 revisions

Problem: zipalign not found

Solution: Replace <YOUR_SDK_VERSION> with the folder name e.g. "19.1.0" and run the below:

ln -s $ANDROID_HOME/build-tools/<YOUR_SDK_VERSION>/zipalign $ANDROID_HOME/tools/

Problem: $ANDROID_HOME not set

Solution: Replace /path/to/android/sdk with the android sdk folder path and run the below:

echo "export ANDROID_HOME=/path/to/android/sdk" >> ~/.bash_profile

Problem: Calabash fails to sign APK

calabash-android-0.5.1/lib/calabash-android/java_keystore.rb:27:in `sign_apk': Could not sign app: /var/folders/rd/drphbmrj31j23m0r383gtccd1nq2t1/T/d20140813-8649-mwulew/unsigned.apk (RuntimeError)

Solution:

rm ~/.android/debug.keystore
keytool -genkey -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US"
rake android:resign

Problem: Fail to initialise

Solution: uninstall the app, and run $rake

Clone this wiki locally