[英]Titanium does not compile Android app (Cannot read property 'sdks' of undefined)
I am trying to build my Android mobile app. 我正在尝试构建我的Android移动应用。
I have used the following command: 我使用了以下命令:
$ appc ti build -p android
However, it bizzarely gives me the following error: 但是,它很奇怪地给了我以下错误:
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
What is going on and how do I fix this issue. 发生了什么事以及如何解决此问题。
This is bug in Titanium cli: https://jira.appcelerator.org/browse/TIMOB-24751 这是Titanium CLI中的错误: https : //jira.appcelerator.org/browse/TIMOB-24751
You can fix this by installing windows sdk or patching the bug your self. 您可以通过安装Windows SDK或自行修复错误来解决此问题。 Edit file
C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.1.0.GA\\windows\\cli\\commands\\_build\\config.wpSDK.js
编辑文件
C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.1.0.GA\\windows\\cli\\commands\\_build\\config.wpSDK.js
Add the fix from this pull request https://github.com/appcelerator/titanium_mobile_windows/pull/1006/files 从此拉取请求中添加修复程序https://github.com/appcelerator/titanium_mobile_windows/pull/1006/files
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.