Details
-
Type:
Bug
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: Release 1.7.2
-
Fix Version/s: Sprint 2011-40, Release 1.8.0
-
Component/s: Tooling
-
Environment:
Mac OS X 10.7.1, Titanium mobile SDK 1.7.2,
Description
I'm trying to work on module tooling in Titanium Studio and while testing generation of an Android mobile module project I ended up with an empty directory. After debugging, I see that the underlying process is returning a 0 exit code, but is actually failing. We typically use the exit code as an indicator of success or failure for native processes, and bubble up the failure based on that. In this case we got a 0 so we assumed success and never notified the user of the root cause.
Here's what I saw as the output of the process in the debugger:
Traceback (most recent call last):
|
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/module/module.py", line 319, in <module>
|
main(sys.argv)
|
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/module/module.py", line 316, in main
|
module = ModuleProject(config['platform'],project_dir,config)
|
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/module/module.py", line 63, in __init__
|
self.platform_delegate = ModulePlatform.create_platform(platform, project_dir, config, self)
|
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/module/module.py", line 34, in create_platform
|
return platform_module_class(project_dir, config, module)
|
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/module/android/android.py", line 26, in __init__
|
print "[ERROR] Couldn't find the Google APIs r%s add-on directory" % self.sdk.DEFAULT_API_LEVEL
|
AttributeError: AndroidSDK instance has no attribute 'DEFAULT_API_LEVEL'
|
Created android module project null
|
Attachments
Issue Links
- relates to
-
TISTUD-572 Enable creation of module projects
-
- Closed
-