Android模拟器在Titanium中不起作用

时间:2013-01-17 20:06:49

标签: android-emulator titanium-mobile

我刚开始使用Titanium SDK并创建了一个android项目。当项目完成并且我想在模拟器中运行代码时,会发生以下错误。

     File 

    "C:\Users\navidos\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.GA\android\builder.py", line 2324, in <module>
        builder = Builder(project_name,sdk_dir,project_dir,template_dir,app_id)
      File "C:\Users\navidos\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.GA\android\builder.py", line 341, in __init__
        self.sdk = AndroidSDK(sdk, self.tool_api_level)
      File "C:\Users\navidos\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.GA\android\androidsdk.py", line 49, in __init__
        self.set_api_level(api_level)
      File "C:\Users\navidos\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.GA\android\androidsdk.py", line 53, in set_api_level
        self.find_platform_dir()
      File "C:\Users\navidos\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.GA\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-8" or "android-2.2" in the Android SDK

是否有人知道我做错了什么,因为我没有得到它。

1 个答案:

答案 0 :(得分:0)

您需要下载相应的Android sdk(通过Android SDK Manager,控制台或第三方工具)并安装它。看看这个类似的question