{ "id": "166727", "key": "AC-4868", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-03-27T18:38:23.000+0000", "created": "2017-03-21T18:53:12.000+0000", "labels": [ "titanium-cli" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-27T18:38:23.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I'm trying to build an Alloy test project using the CLI. I followed the instructions from [here|http://docs.appcelerator.com/platform/latest/#!/guide/Setting_up_the_Titanium_CLI].\r\n\r\nBut whenever I run the command\r\n\r\n{quote}ti build -p android -T device{quote}\r\n\r\nI get the following error as it's finishing to try and generate the APK:\r\n\r\n{quote}[INFO] Generating C:\\Titanium\\workspace\\AppTest4\\build\\android\\res\\values\\theme.xml\r\n[INFO] Packaging application: c:\\Android\\SDK\\build-tools\\24.0.0\\aapt.exe \"package\" \"-f\" \"-m\" \"-J\" \"C:\\Titanium\\workspace\\AppTest4\\build\\android\\gen\" \"-M\" \"C:\\Titanium\\workspace\\AppTest4\\build\\android\\AndroidManifest.xml\" \"-A\" \"C:\\Titanium\\workspace\\AppTest4\\build\\android\\bin\\assets\" \"-S\" \"C:\\Titanium\\workspace\\AppTest4\\build\\android\\res\" \"-I\" \"c:\\Android\\SDK\\platforms\\android-23\\android.jar\" \"-F\" \"C:\\Titanium\\workspace\\AppTest4\\build\\android\\bin\\app.ap_\" \"--auto-add-overlay\" \"--extra-packages\" \"ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview\" \"-S\" \"C:\\Users\\AGUSTN~1\\AppData\\Local\\Temp\\117222-4892-jevz47/res\" \"-S\" \"C:\\Users\\AGUSTN~1\\AppData\\Local\\Temp\\117222-4892-1b4s1oy/res\" \"-S\" \"C:\\Users\\AGUSTN~1\\AppData\\Local\\Temp\\117222-4892-1ik5kyr/res\"\r\n[ERROR] Failed to package application:\r\n[ERROR]\r\n[ERROR]{quote}\r\n\r\nThe full build log can be found in my attachments.\r\n\r\nI have tried creating sample projects using Titanium SDK 6.0.2.GA, 6.0.1.GA and 5.5.1.GA, but none have been successful at generating the APK.\r\n\r\nThe way I generate the projects from CLI is using the following commands:\r\n\r\n{quote}ti create --id com.mycompany.myapp -d . -n APPNAME -p android -t app -u http://mycompany.com \r\ncd APPNAME/\r\nalloy new\r\n{quote}\r\n\r\nAre there any know causes for this issue? \r\n\r\nI attach the log from the command 'appc ti info -p android' when run with Titanium SDK 6.0.2.GA, 6.0.1.GA and 5.5.2.GA selected. \r\n\r\n", "attachment": [ { "id": "61897", "filename": "appc_log_5.5.2.GA.txt", "author": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T23:31:26.000+0000", "size": 1825, "mimeType": "text/plain" }, { "id": "61896", "filename": "appc_log_6.0.1.GA.txt", "author": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T23:31:26.000+0000", "size": 19364, "mimeType": "text/plain" }, { "id": "61895", "filename": "appc_log_6.0.2.GA.txt", "author": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T23:31:26.000+0000", "size": 18712, "mimeType": "text/plain" }, { "id": "61893", "filename": "build_log.txt", "author": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:57:51.000+0000", "size": 26486, "mimeType": "text/plain" } ], "flagged": false, "summary": "Building from CLI for Android device throws 'Failed to package application' error", "creator": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows 10 Professional\r\nJava 8 32 bits\r\nTitanium SDK 6.0.2.GA, 6.0.1.GA, 5.5.1.GA\r\nAlloy 1.9.8\r\nTitanium CLI 5.0.12\r\nNPM 3.8.3\r\nNode 5.10.1\r\n", "comment": { "comments": [ { "id": "414383", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Use the new release SDK 6.0.2.GA. You are using an old SDK. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-03-21T20:43:29.000+0000", "updated": "2017-03-21T20:43:29.000+0000" }, { "id": "414662", "author": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ok, I managed to get the latest SDK, created another test project and this time it fails when packaging the application, it throws the following:\r\n\r\n{quote}[INFO] Generating C:\\Titanium\\workspace\\TestApp\\build\\android\\res\\values\\theme.xml\r\n[INFO] Packaging application: c:\\Android\\SDK\\build-tools\\24.0.0\\aapt.exe \"package\" \"-f\" \"-m\" \"-J\" \"C:\\Titanium\\workspace\\TestApp\\build\\android\\gen\" \"-M\" \"C:\\Titanium\\workspace\\TestApp\\build\\android\\AndroidManifest.xml\" \"-A\" \"C:\\Titanium\\workspace\\TestApp\\build\\android\\bin\\assets\" \"-S\" \"C:\\Titanium\\workspace\\TestApp\\build\\android\\res\" \"-I\" \"c:\\Android\\SDK\\platforms\\android-23\\android.jar\" \"-F\" \"C:\\Titanium\\workspace\\TestApp\\build\\android\\bin\\app.ap_\" \"--auto-add-overlay\" \"--extra-packages\" \"ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview\" \"-S\" \"C:\\Users\\AGUSTN~1\\AppData\\Local\\Temp\\117221-11972-1i8hc6e/res\" \"-S\" \"C:\\Users\\AGUSTN~1\\AppData\\Local\\Temp\\117221-11972-11ri86m/res\" \"-S\" \"C:\\Users\\AGUSTN~1\\AppData\\Local\\Temp\\117221-11972-1kv5ato/res\"\r\n[ERROR] Failed to package application:\r\n[ERROR]\r\n[ERROR]{quote}", "updateAuthor": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T23:10:37.000+0000", "updated": "2017-03-21T23:31:55.000+0000" }, { "id": "414738", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Attach the log of \"appc ti info -p android\" as a text file in this ticket. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-03-22T14:18:41.000+0000", "updated": "2017-03-22T14:18:41.000+0000" }, { "id": "414742", "author": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have attached the log with the contents you requested. Thanks.", "updateAuthor": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T15:43:28.000+0000", "updated": "2017-03-22T15:43:28.000+0000" }, { "id": "415288", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, You should follow this link here http://docs.appcelerator.com/platform/latest/#!/guide/Appcelerator_CLI_Tasks. You are using our old Titanium CLI for development. We are now Appcelerator. Also, Use the studio for development. Follow: http://docs.appcelerator.com/platform/latest/#!/guide/Quick_Start. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-03-23T14:41:39.000+0000", "updated": "2017-03-23T14:41:39.000+0000" }, { "id": "415494", "author": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In that case you can close this as solved. Thanks", "updateAuthor": { "name": "auamendoza88", "key": "auamendoza88", "displayName": "Uriel Arvizu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:46:03.000+0000", "updated": "2017-03-23T22:46:03.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }