{"action":"created","issue":{"url":"https://api.github.com/repos/calabash/calabash-android/issues/693","repository_url":"https://api.github.com/repos/calabash/calabash-android","labels_url":"https://api.github.com/repos/calabash/calabash-android/issues/693/labels{/name}","comments_url":"https://api.github.com/repos/calabash/calabash-android/issues/693/comments","events_url":"https://api.github.com/repos/calabash/calabash-android/issues/693/events","html_url":"https://github.com/calabash/calabash-android/issues/693","id":135957096,"number":693,"title":"Unable to signed apk","user":{"login":"aldosuwandi","id":2005865,"avatar_url":"https://avatars.githubusercontent.com/u/2005865?v=3","gravatar_id":"","url":"https://api.github.com/users/aldosuwandi","html_url":"https://github.com/aldosuwandi","followers_url":"https://api.github.com/users/aldosuwandi/followers","following_url":"https://api.github.com/users/aldosuwandi/following{/other_user}","gists_url":"https://api.github.com/users/aldosuwandi/gists{/gist_id}","starred_url":"https://api.github.com/users/aldosuwandi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldosuwandi/subscriptions","organizations_url":"https://api.github.com/users/aldosuwandi/orgs","repos_url":"https://api.github.com/users/aldosuwandi/repos","events_url":"https://api.github.com/users/aldosuwandi/events{/privacy}","received_events_url":"https://api.github.com/users/aldosuwandi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T05:06:15Z","updated_at":"2016-03-15T16:30:46Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to run **calabash-android signed app-debug.apk**  and I got this issue.\r\nMy environment is Ubuntu 14.0.4, Ruby 1.9.3, calabash-android 0.6.\r\n\r\nHere's my error log :\r\n\r\n```\r\n$ calabash-android resign app-debug.apk -v\r\n2016-02-24 13:51:20 - JDK found on PATH.\r\n2016-02-24 13:51:20 - JDK found at: /usr/lib/jvm/jdk-8-oracle\r\n2016-02-24 13:51:20 - Android SDK found at: /opt/android-sdk-linux\r\n2016-02-24 13:51:20 - Resign apk\r\n2016-02-24 13:51:20 - Found tools directory at '/opt/android-sdk-linux/build-tools/22.0.1'\r\nsh: 1: /opt/android-sdk-linux/build-tools/22.0.1/aapt: not found\r\n2016-02-24 13:51:20 - App wasn't signed. Will not try to unsign it.\r\n2016-02-24 13:51:20 - Keystore location specified in .calabash_settings.\r\n2016-02-24 13:51:20 - Reading keystore data from keystore file '/home/aldosuwandi/.android/debug.keystore'\r\n2016-02-24 13:51:20 - \"/usr/bin/keytool\" -list -v -alias androiddebugkey -keystore /home/aldosuwandi/.android/debug.keystore -storepass android \"-J\"-Dfile.encoding=utf-8\"\" \"-J\"-Duser.language=en-US\"\"\r\n2016-02-24 13:51:20 - Key store data:\r\n2016-02-24 13:51:20 - Alias name: androiddebugkey\r\nCreation date: Feb 24, 2016\r\nEntry type: PrivateKeyEntry\r\nCertificate chain length: 1\r\nCertificate[1]:\r\nOwner: CN=Android Debug, O=Android, C=US\r\nIssuer: CN=Android Debug, O=Android, C=US\r\nSerial number: 162b67eb\r\nValid from: Wed Feb 24 12:49:33 JST 2016 until: Sun Jul 12 12:49:33 JST 2043\r\nCertificate fingerprints:\r\n\t MD5:  98:08:27:74:62:A4:8F:2C:5B:82:62:71:2B:6B:FF:51\r\n\t SHA1: B8:21:96:FC:97:25:12:F9:98:3F:B7:DA:1E:86:B4:B7:A5:DA:61:1B\r\n\t SHA256: F4:E9:8D:E8:4F:36:D2:F0:F5:56:35:92:BB:AC:E8:45:0E:F8:AA:12:16:88:6E:EA:DA:86:72:BE:2C:2B:30:93\r\n\t Signature algorithm name: SHA256withRSA\r\n\t Version: 3\r\n\r\nExtensions: \r\n\r\n#1: ObjectId: 2.5.29.14 Criticality=false\r\nSubjectKeyIdentifier [\r\nKeyIdentifier [\r\n0000: D5 97 4C 1B F3 89 1A 8A   D3 17 4F 7B D4 FC 79 04  ..L.......O...y.\r\n0010: C9 20 13 56                                        . .V\r\n]\r\n]\r\n\r\n2016-02-24 13:51:20 - Fingerprint: 98:08:27:74:62:A4:8F:2C:5B:82:62:71:2B:6B:FF:51\r\n2016-02-24 13:51:20 - Signature algorithm name: SHA256withRSA\r\n2016-02-24 13:51:20 - Signing using the signature algorithm: 'SHA1withRSA'\r\n2016-02-24 13:51:20 - Signing using the digest algorithm: 'SHA1'\r\n2016-02-24 13:51:20 - \"/usr/bin/jarsigner\" -sigfile CERT -sigalg SHA1withRSA -digestalg SHA1 -signedjar /tmp/d20160224-14280-89t2y3/unaligned.apk -storepass android -keystore /home/aldosuwandi/.android/debug.keystore /tmp/d20160224-14280-89t2y3/unsigned.apk androiddebugkey\r\n2016-02-24 13:51:20 - Did not find zipalign at '/opt/android-sdk-linux/tools/zipalign'. Trying to find zipalign in tools directories.\r\n2016-02-24 13:51:20 - Found zipalign at '/opt/android-sdk-linux/build-tools/22.0.1/zipalign'\r\n2016-02-24 13:51:20 - Zipaligning using: \"/opt/android-sdk-linux/build-tools/22.0.1/zipalign\" -f 4 \"/tmp/d20160224-14280-89t2y3/unaligned.apk\" \"/home/aldosuwandi/RubymineProjects/TMSampleAndroid/app-debug.apk\"\r\nsh: 1: /opt/android-sdk-linux/build-tools/22.0.1/zipalign: not found\r\n```\r\n\r\n\r\nIf you notice 2 errors in that log is :\r\n\r\n```\r\nsh: 1: /opt/android-sdk-linux/build-tools/22.0.1/aapt: not found\r\nsh: 1: /opt/android-sdk-linux/build-tools/22.0.1/zipalign: not found\r\n```\r\n\r\nBut actually those files are exist in my pc and I think the problem is this execution can't find/create  the following file\r\n\r\n> /tmp/d20160224-14280-89t2y3/unsigned.apk\r\n\r\nso, the signing process is failed. Could you give a solution about it ?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/calabash/calabash-android/issues/comments/196908993","html_url":"https://github.com/calabash/calabash-android/issues/693#issuecomment-196908993","issue_url":"https://api.github.com/repos/calabash/calabash-android/issues/693","id":196908993,"user":{"login":"TobiasRoikjer","id":5135960,"avatar_url":"https://avatars.githubusercontent.com/u/5135960?v=3","gravatar_id":"","url":"https://api.github.com/users/TobiasRoikjer","html_url":"https://github.com/TobiasRoikjer","followers_url":"https://api.github.com/users/TobiasRoikjer/followers","following_url":"https://api.github.com/users/TobiasRoikjer/following{/other_user}","gists_url":"https://api.github.com/users/TobiasRoikjer/gists{/gist_id}","starred_url":"https://api.github.com/users/TobiasRoikjer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TobiasRoikjer/subscriptions","organizations_url":"https://api.github.com/users/TobiasRoikjer/orgs","repos_url":"https://api.github.com/users/TobiasRoikjer/repos","events_url":"https://api.github.com/users/TobiasRoikjer/events{/privacy}","received_events_url":"https://api.github.com/users/TobiasRoikjer/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T16:30:46Z","updated_at":"2016-03-15T16:30:46Z","body":"@aldosuwandi Calabash-Android 0.7.0 improves detection, https://groups.google.com/forum/#!topic/calabash-android/tpFjJQBAFLc.\r\n\r\nTry upgrading and see if that fixes it"}}