android - Titanium: Signing apk fails -
so click run, , error get:
[info] : determining signature algorithm: /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/keytool "-j-duser.language=en" "-v" "-list" "-keystore" "/users/johndoe/library/application support/titanium/mobilesdk/osx/3.2.2.ga/android/dev_keystore" "-storepass" "*******" "-alias" "tidev" [info] : using md5withrsa signature algorithm [info] : signing apk: /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/jarsigner "-sigalg" "md5withrsa" "-digestalg" "sha1" "-keystore" "/users/johndoe/library/application support/titanium/mobilesdk/osx/3.2.2.ga/android/dev_keystore" "-storepass" "*******" "-signedjar" "/users/johndoe/documents/titanium_studio_workspace/testapp/build/android/bin/testapp.apk" "/users/johndoe/documents/titanium_studio_workspace/testapp/build/android/bin/app-unsigned.apk" "tidev" [error] application installer abnormal process termination. process exit value 8 [info] : aligning zip file: null "-v" "4" "/users/johndoe/documents/titanium_studio_workspace/testapp/build/android/bin/testapp.apk" "/users/johndoe/documents/titanium_studio_workspace/testapp/build/android/bin/testapp.apkz" /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185 throw e; ^ typeerror: bad argument @ childprocess.spawn (child_process.js:915:24) @ exports.spawn (child_process.js:715:9) @ object.run (/users/johndoe/library/application support/titanium/mobilesdk/osx/3.2.2.ga/node_modules/node-appc/lib/subprocess.js:47:14) @ androidbuilder.<anonymous> (/users/johndoe/library/application support/titanium/mobilesdk/osx/3.2.2.ga/android/cli/commands/_build.js:3954:20) @ /usr/local/lib/node_modules/titanium/lib/hook.js:256:13 @ /usr/local/lib/node_modules/titanium/node_modules/async/li i tried executing statement in question manually, same error.
at first thought keystore got corrupted, tested using this:
keytool -list -keystore "/users/johndoe/library/application support/titanium/mobilesdk/osx/3.2.2.ga/android/dev_keystore" i enter password "tirocks", , lists 1 entry. it's not password issue or keystore corrupt.
anyone have idea what's going on?
holy smokes, solved it, pulled hair out trying solve it.
the issue not signing of apk, next line, zipalign tool.
it giving me error message @ start of executing it, i've been ignoring message.
well decided deal it, , turns out cause of issue.
so basically, copied zipalign file platform-tools (it's in several folders, search it) /tools folder in sdk.
now it's working!
and there rejoicing...
Comments
Post a Comment