{ "id": "125424", "key": "AC-2599", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-01-28T19:13:33.000+0000", "created": "2014-01-26T09:31:15.000+0000", "labels": [ "3.2.1", "android", "build", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-03-08T07:41:41.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" } ], "description": "The following builds fine if the project uses 3.2.0.GA, but not with the 3.2.1 beta linked from the blog:\r\n\r\n{code}\r\nti create -p android -n testb321 --id test.b321 -d .\r\ncd testb321\r\nti build -p android -T device\r\n\r\n[INFO] Creating unsigned apk\r\n[INFO] Processing /Users/zandbergen/dev/tests/testb321/build/android/src\r\n[INFO] Writing unsigned apk: /Users/zandbergen/dev/tests/testb321/build/android/bin/app-unsigned.apk\r\n[INFO] Determining signature algorithm: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/keytool \"-J-Duser.language=en\" \"-v\" \"-list\" \"-keystore\" \"/Users/zandbergen/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140121132444/android/dev_keystore\" \"-storepass\" \"*******\" \"-alias\" \"tidev\"\r\n[INFO] Using MD5withRSA signature algorithm\r\n[INFO] Signing apk: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/jarsigner \"-sigalg\" \"MD5withRSA\" \"-digestalg\" \"SHA1\" \"-keystore\" \"/Users/zandbergen/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140121132444/android/dev_keystore\" \"-storepass\" \"*******\" \"-signedjar\" \"/Users/zandbergen/dev/tests/testb321/build/android/bin/testb321.apk\" \"/Users/zandbergen/dev/tests/testb321/build/android/bin/app-unsigned.apk\" \"tidev\"\r\n[INFO] Aligning zip file: /Users/zandbergen/dev/android-sdk/tools/zipalign \"-v\" \"4\" \"/Users/zandbergen/dev/tests/testb321/build/android/bin/testb321.apk\" \"/Users/zandbergen/dev/tests/testb321/build/android/bin/testb321.apkz\"\r\n[INFO] Writing build manifest: /Users/zandbergen/dev/tests/testb321/build/android/build-manifest.json\r\n[ERROR] Project failed to build after 27s 193ms\r\n{code}\r\n\r\nBut even though the build succeeds with the project set to 3.2.0.GA, the build is corrupted somehow. Files are reported missing when the app runs. Sometimes even the {{app.js}} is missing.", "attachment": [], "flagged": false, "summary": "Cannot build for Android with SDK 3.2.1.v20140121132444 (beta)", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "CLI 3.2.1-beta3\r\nSDK 3.2.1.v20140121132444 (beta from the blog)", "comment": { "comments": [ { "id": "289839", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tried to reproduce with the steps & environment mentioned in above but was not able to reproduce, I will investigate into it more. \r\nFor me the app builds & launches successfully on the android device using the CLI.\r\n\r\n@Fokke Zandbergen - You can try setting your log level to trace so that we can have more logging data & attach the logs.\r\n\r\nEnvironment:\r\nAppc Studio : 3.2.1.201401241158\r\nTi SDK : 3.2.1.v20140121132444\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.1-beta3 \t\r\nCLI - 3.2.1 beta3\r\nSamsung Galaxy S4 running android 4.2.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-27T19:06:57.000+0000", "updated": "2014-01-27T19:09:30.000+0000" }, { "id": "290026", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Well, don't ask why.. but I fixed it by removing all CLI command and hook plugins and then adding them again, having identical config before and after, but now working:\n\n{code}\npaths.commands = [\"/Users/zandbergen/dev/forks/TiShadow/plugin/yy.tishadow/1.0/commands\"]\npaths.hooks = [\"/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1387250774/node_modules/liveview/hook\",\"/usr/local/lib/node_modules/rapiddev/plugin/rapiddev/hooks\",\"/Users/zandbergen/dev/forks/TiShadow/plugin/yy.tishadow/1.0/hooks\"]\npaths.modules = [\"/usr/local/lib/node_modules/rapiddev/module\"]\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-01-28T18:59:33.000+0000", "updated": "2014-01-28T18:59:33.000+0000" }, { "id": "290034", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~fokke] Crazy. That's weird. I'll resolve this as cannot reproduce. If this issue crops back up, reopen this ticket or create a new one and we'll take a peek. Thanks!", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-28T19:13:26.000+0000", "updated": "2014-01-28T19:13:26.000+0000" }, { "id": "290212", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Got the same problem again [~cbarber], now solved it by simply:\n\n{code}\nsudo npm uninstall -g titanium\nsudo npm install -g titanium\nti sdk select 3.2.0.GA\n{code}\n\nSomehow not all files from the Resources directory are copied to {{build/android/assets}}.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-01-29T13:16:10.000+0000", "updated": "2014-01-29T13:16:10.000+0000" }, { "id": "290213", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Also strange, even if I set --log-level \"trace\" while also having it set with {{ti setup}} I only see {{[TRACE]}} messages in the Alloy compile part.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-01-29T13:32:36.000+0000", "updated": "2014-01-29T13:32:36.000+0000" }, { "id": "290241", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~fokke] Can you verify that {{ti config cli.logLevel}} is set to {{trace}}?\n\nI'm not sure why reinstalling the SDK fixes things. Do you happen to have the Soasta Touchtest CLI plugins and modules installed?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-29T17:54:50.000+0000", "updated": "2014-01-29T17:54:50.000+0000" }, { "id": "290243", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Well, I don't reinstall the SDK, but just rollback to the 3.2.0 CLI and select the 3.2.0.GA SDK. That fixes it inmediately.\n\nNo, I don't use Soasta, only have the LiveView hook installed.\n\nThe thing is, first when I upgrade the CLI to 3.2.1 and select the 3.2.1 SDK it just works, but then after a day or so (or when I do something I'm not aware of what it is), it will stop working.\n\nMaking it very hard to reproduce.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-01-29T18:07:52.000+0000", "updated": "2014-01-29T18:07:52.000+0000" }, { "id": "290264", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~fokke] The latest stable LiveView hook is NOT compatible with Titanium CLI 3.2.1. If you want to use LiveView, downgrade to Titanium CLI 3.2.0. If you want to use 3.2.1, you need to remove the LiveView hook from your {{paths.hooks}}.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-29T18:36:53.000+0000", "updated": "2014-01-29T18:36:53.000+0000" }, { "id": "290266", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Ah, well that explains :)", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-01-29T18:40:13.000+0000", "updated": "2014-01-29T18:40:13.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }