{ "id": "89472", "key": "TIMOB-8621", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-10T16:05:26.000+0000", "created": "2012-04-04T11:11:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "qe-and040912" ], "versions": [], "issuelinks": [ { "id": "16296", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "88888", "key": "TISTUD-1436", "fields": { "summary": "Packaging of Android module fails to copy built module to destination", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "29100", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "115023", "key": "TIMOB-14004", "fields": { "summary": "Linux: Android Module Fails to Build", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-05-28T18:56:13.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When creating an Android module project, the process ends in error:\r\n{code}\r\n[ERROR] Couldn't find the Google APIs r8 add-on directory\r\n{code}\r\n\r\n1. Create a new module project using titanium, for example:\r\n{code}\r\ndhydeMBPSnowLeopard:~ dhyde$ \"/usr/bin/python\" \"/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120407201726/titanium.py\" \"create\" \"--type=module\" \"--id=com.appcelerator.mymodule\" \"--name=MyModule\" \"--dir=/var/folders/Jt/Jte2czQvFoaxMh25z-WDKE+++TM/-Tmp-/module_temp8018343781039291630.tmp\" \"--platform=android\" \"--sdk=/Users/dhyde/Documents/android/android-sdk-macosx\"\r\n{code}\r\n\r\nExpected Result:\r\nModule project should be created.", "attachment": [ { "id": "26824", "filename": "Android Module Creation Error Log.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T11:11:48.000+0000", "size": 23836, "mimeType": "text/plain" }, { "id": "26825", "filename": "Android Module Error.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T11:11:48.000+0000", "size": 91823, "mimeType": "image/png" }, { "id": "26921", "filename": "detailed log.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T09:43:25.000+0000", "size": 13363, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Error creating Module projects with new installation of SDK r18 and Google APIs r8", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.8.2, 2.0.0.GA, 2.1.0.v20120404094818\r\nStudio: 1.0.9, 2.0.0.201203291340\r\nOS: Snow Leopard\r\n", "comment": { "comments": [ { "id": "190269", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For those experiencing the issue, plea update to the latest RC version from preview.appcelerator.com and retry. This should give us more information about what is causing the issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-08T08:42:39.000+0000", "updated": "2012-04-08T08:42:39.000+0000" }, { "id": "190321", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To all...please try the following:\r\n\r\n# Open up Preferences > Studio > Troubleshooting and enable \"All\" debugging on specific component com.aptana.core/debug/shell\r\n# Run the module creation wizard for Android. Check the log file. You'll see the exact command it used to run it. Try running that yourself on the command line. Does it work?\r\n# If you run the process inside Studio, does that end folder get created?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T08:39:25.000+0000", "updated": "2012-04-09T08:39:25.000+0000" }, { "id": "190323", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Attaching detailed log from Ingo's steps.\r\n\r\nThe exact command run from the command line fails:\r\n\r\n{code}\r\ndhydeMBPSnowLeopard:~ dhyde$ \"/usr/bin/python\" \"/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120407201726/titanium.py\" \"create\" \"--type=module\" \"--id=com.appcelerator.mymodule\" \"--name=MyModule\" \"--dir=/var/folders/Jt/Jte2czQvFoaxMh25z-WDKE+++TM/-Tmp-/module_temp8018343781039291630.tmp\" \"--platform=android\" \"--sdk=/Users/dhyde/Documents/android/android-sdk-macosx\"\r\n[ERROR] Couldn't find the Google APIs r8 add-on directory\r\nAborting\r\n{code}\r\n\r\nThe module folder is created, but is empty.\r\n\r\nNote: Google API r8 is installed on my machine.", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T09:43:15.000+0000", "updated": "2012-04-09T13:16:18.000+0000" }, { "id": "190365", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To replicate, wipe your android ADK folder and install version r17. You will then get the same error Dustin reports.\r\n\r\nTo fix, add the following lines into androidsdk.py @ line 102:\r\n\r\n{code}\r\nif self.google_apis_dir is None:\r\n\tself.google_apis_dir = self.find_dir(self.api_level, os.path.join('add-ons', 'addon-google_apis-google-'))\r\n{code}\r\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T14:10:19.000+0000", "updated": "2012-04-09T14:10:34.000+0000" }, { "id": "190366", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe this is probably a blocker as other users will run into this issue with other things that reference the add-ons folder. Note that we use a regex in Studio for parsing for these modules--it might be easier. We use \"addon.+google.+apis.+8\".", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T14:11:58.000+0000", "updated": "2012-04-09T14:16:29.000+0000" }, { "id": "190396", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To test: \r\n1. Install Google API r8 and also install the sdk addons accordingly. \r\n2. Inside the addons directory of your android sdk, you verify there is an addon named \"addon-google_apis-google-8\"\r\n3. Launch Studio, and make sure you are using the r8 sdk inside preferences > Titanium Studio > Titanium\r\n4. Create a new Mobile Module Project\r\n\r\nThe module should create without any errors.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T19:12:22.000+0000", "updated": "2012-04-09T19:12:22.000+0000" }, { "id": "190448", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.0.1.v20120410103239, 2.1.0.v20120410105657\r\nAndroid: V8\r\nStudio: 2.0.1.201204061639\r\nOS: Snow Leopard, Windows 7\r\nDevices Tested: Nexus S 4.0.4\r\n\r\nAble to create, build, and run module in app.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-10T11:16:26.000+0000", "updated": "2012-04-10T14:20:10.000+0000" }, { "id": "190507", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Opening to edit labels.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-10T16:04:50.000+0000", "updated": "2012-04-10T16:04:50.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }