{ "id": "65067", "key": "TIMOB-3911", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11253", "name": "Sprint 2011-18", "archived": true, "released": true, "releaseDate": "2011-05-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-06T03:56:17.000+0000", "created": "2011-05-05T16:31:02.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "10350", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "64102", "key": "TIMOB-3470", "fields": { "summary": "Android: timodule.xml contents do not get copied into generated AndroidManifest.xml", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-05-06T10:55:09.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": "10207", "name": "Tooling" } ], "description": "If the Android SDK API Level 4 {{android-4}} is not available in the tooling. You are unable to create a module, also it prints a success message instead of a failure message.\n\n1) Make sure your titanium command is aliased to the 1.7.0 build (Module docs)\n\n2) If you have {{android-4}} in your platforms, rename the folder so it won't be recognized as installed.\n\n3) At the command line attempt to create a module.\n\n{code}\ntitanium create --platform=android --type=module --name=don01 --id=net.donthorp.don01 --android=/opt/android-sdk\n{code} \n\nIn fail state you get something like\n\n{code}\n$ titanium create --platform=android --type=module --name=don01 --id=net.donthorp.don01 --android=/opt/android-sdk\nTraceback (most recent call last):\nFile \"/Users/dthorp/Library/Application Support/Titanium/mobilesdk/osx/dev-1.7.0/module/module.py\", line 319, in \nmain(sys.argv)\nFile \"/Users/dthorp/Library/Application Support/Titanium/mobilesdk/osx/dev-1.7.0/module/module.py\", line 316, in main\nmodule = ModuleProject(config['platform'],project_dir,config)\nFile \"/Users/dthorp/Library/Application Support/Titanium/mobilesdk/osx/dev-1.7.0/module/module.py\", line 63, in __init__\nself.platform_delegate = ModulePlatform.create_platform(platform, project_dir, config, self)\nFile \"/Users/dthorp/Library/Application Support/Titanium/mobilesdk/osx/dev-1.7.0/module/module.py\", line 34, in create_platform\nreturn platform_module_class(project_dir, config, module)\nFile \"/Users/dthorp/Library/Application Support/Titanium/mobilesdk/osx/dev-1.7.0/module/android/android.py\", line 21, in __init__\nself.sdk = androidsdk.AndroidSDK(module_project.sdk, 4)\nFile \"/Users/dthorp/projects/appcelerator/titanium_mobile/dist/mobilesdk/osx/1.7.0/android/androidsdk.py\", line 46, in __init__\nself.find_platform_dir()\nFile \"/Users/dthorp/projects/appcelerator/titanium_mobile/dist/mobilesdk/osx/1.7.0/android/androidsdk.py\", line 86, in find_platform_dir\nraise Exception(\"No \\\"%s\\\" or \\\"%s\\\" in the Android SDK\" % ('android-%s' % self.api_level, android_api_levels[self.api_level]))\nException: No \"android-4\" or \"android-1.6\" in the Android SDK\nCreated android module project\n{code}", "attachment": [], "flagged": false, "summary": "Android: Creating a Module Fails if android-4 Not Available", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }