Project: appceleratorstudio
Issue TISTUD-5558: Error creating a new Android module project
h5. Problem description Creating a new module project returns an error. h5. Steps to reproduce - Create a new Mobile Module Project for Android. Result: an error is thrown: {code} Traceback (most recent call last): File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/module/module.py", line 387, in main(sys.argv) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/module/module.py", line 384, in main module = ModuleProject(config['platform'],project_dir,config) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/module/module.py", line 63, in __init__ self.platform_delegate = ModulePlatform.create_platform(platform, project_dir, config, self) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/module/module.py", line 34, in create_platform return platform_module_class(project_dir, config, module) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/module/android/android.py", line 23, in __init__ self.sdk = androidsdk.AndroidSDK(module_project.sdk) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/android/androidsdk.py", line 49, in __init__ self.set_api_level(api_level) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/android/androidsdk.py", line 53, in set_api_level self.find_platform_dir() File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/android/androidsdk.py", line 131, in find_platform_dir raise Exception("No \"%s\" or \"%s\" in the Android SDK" % ('android-%s' % api_level, android_api_levels[api_level])) Exception: No "android-10" or "android-2.3.3" in the Android SDK Aborting Traceback (most recent call last): File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/module/module.py", line 387, in main(sys.argv) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/module/module.py", line 384, in main module = ModuleProject(config['platform'],project_dir,config) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/module/module.py", line 63, in __init__ self.platform_delegate = ModulePlatform.create_platform(platform, project_dir, config, self) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/module/module.py", line 34, in create_platform return platform_module_class(project_dir, config, module) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/module/android/android.py", line 23, in __init__ self.sdk = androidsdk.AndroidSDK(module_project.sdk) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/android/androidsdk.py", line 49, in __init__ self.set_api_level(api_level) File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/android/androidsdk.py", line 53, in set_api_level self.find_platform_dir() File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131018154951/android/androidsdk.py", line 131, in find_platform_dir raise Exception("No \"%s\" or \"%s\" in the Android SDK" % ('android-%s' % api_level, android_api_levels[api_level])) Exception: No "android-10" or "android-2.3.3" in the Android SDK Aborting {code} Works fine for iOS. Reproducible also using previous TiSDK.
Story points: 3