Titanium不会编译Android应用程序(无法读取未定义的属性'sdks')

时间:2017-05-29 11:29:43

标签: android titanium appcelerator appcelerator-titanium

我正在尝试构建我的Android移动应用。

我使用了以下命令:

$ appc ti build -p android

然而,它眩晕地给了我以下错误:

Appcelerator Command-Line Interface, version 6.2.2
Copyright (c) 2014-2017, Appcelerator, Inc.  All Rights Reserved.

An uncaught exception was thrown!
Cannot read property 'sdks' of undefined
Cannot read property 'sdks' of undefined

发生了什么以及如何解决此问题。

1 个答案:

答案 0 :(得分:3)

这是Titanium cli中的错误:https://jira.appcelerator.org/browse/TIMOB-24751

您可以通过安装Windows sdk或修补自己的错误来解决此问题。修改档案C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.GA\windows\cli\commands\_build\config.wpSDK.js

添加此拉取请求https://github.com/appcelerator/titanium_mobile_windows/pull/1006/files

中的修复程序