{ "id": "89461", "key": "AC-2858", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-09T14:27:15.000+0000", "created": "2012-04-04T08:23:45.000+0000", "labels": [ "android", "builder.py", "runtime", "studio" ], "versions": [], "issuelinks": [], "assignee": { "name": "ihowarth", "key": "ihowarth", "displayName": "Ian Howarth", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:48.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": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "When I try to run the project on an Android device or emulator, I am getting the following error:\r\nTraceback (most recent call last): File \"/Users/tamsler/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/builder.py\", line 2065, in s = Builder(project_name,sdk_dir,project_dir,template_dir,app_id) File \"/Users/tamsler/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/builder.py\", line 244, in init android_creator.create(parent_dir, project_dir=self.top_dir, build_time=True) File \"/Users/tamsler/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/android.py\", line 304, in create app_properties = self.app_properties, app_info = self.app_info) File \"/Users/tamsler/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/android.py\", line 114, in render f.write(tmpl.render(config = self.config, **kwargs)) File \"/Users/tamsler/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/mako/template.py\", line 133, in render return runtime.render(self, self.callable, args, data) File \"/Users/tamsler/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/mako/runtime.py\", line 347, in render _render_context(template, callable, context, *args, **_kwargs_for_callable(callable_, data)) File \"/Users/tamsler/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/mako/runtime.py\", line 364, in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File \"/Users/tamsler/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/mako/runtime.py\", line 397, in _exec_template callable_(context, *args, **kwargs) File \"_Users_tamsler_Library_Application_Support_Titanium_mobilesdk_osx_1_8_2_android_templates_AppInfo_java\", line 103, in render_body KeyError: 'analytics'\r\nI am not getting any errors when running the code on the iOS emulator.", "attachment": [], "flagged": false, "summary": "Error when preparing for running on Android emulator or device", "creator": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OS: Mac OS X 10.7.3\r\nTitanium Studio, build: 1.0.9.201202141208 (c) Copyright 2011 by Appcelerator, Inc.\r\nAll rights reserved. Build: jenkins-titanium-rcp-master-138 (origin/master) Date: 14 February 2012, 12:10:43", "comment": { "comments": [ { "id": "189830", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\n\r\nis this happening with any project? or just one in particular? \r\n\r\nCan you please create a new mobile project and test?\r\n\r\nBest,\r\n\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-04-04T10:06:51.000+0000", "updated": "2012-04-04T10:06:51.000+0000" }, { "id": "189852", "author": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am able to create a new project and the error doesn't happen there. It's seems that the error only occurs in my specific project.\r\n", "updateAuthor": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T12:21:38.000+0000", "updated": "2012-04-04T12:21:38.000+0000" }, { "id": "189907", "author": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I found the issue. For some reason, the tiapp.xml file had a missing true entry. Once I added that entry and cleaned the project's build directory, everything started to work. ", "updateAuthor": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T21:44:56.000+0000", "updated": "2012-04-04T21:44:56.000+0000" }, { "id": "189941", "author": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Maybe the tiapp.xml XML validation needs some adjustment (DTD) so that it shows more meaningful errors. ", "updateAuthor": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-05T08:29:31.000+0000", "updated": "2012-04-05T08:29:31.000+0000" }, { "id": "189943", "author": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-05T08:33:12.000+0000", "updated": "2012-04-05T08:33:12.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }