【问题标题】:Titanium does not compile Android app (Cannot read property 'sdks' of undefined)Titanium 无法编译 Android 应用程序(无法读取未定义的属性“sdks”)
【发布时间】:2017-05-29 11:29:43
【问题描述】:

我正在尝试构建我的 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

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

【问题讨论】:

    标签: android titanium appcelerator appcelerator-titanium


    【解决方案1】:

    这是 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

    【讨论】:

    • 谢谢!这很有帮助!
    猜你喜欢
    • 1970-01-01
    • 2019-02-01
    • 2021-11-03
    • 2021-04-23
    • 2017-12-30
    • 1970-01-01
    • 1970-01-01
    • 2021-11-25
    相关资源
    最近更新 更多