简体   繁体   English

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

[英]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.

相关问题 Android WebView“无法读取未定义的属性'getAttribute'” - Android WebView “Cannot read property 'getAttribute' of undefined” 无法读取android中未定义的属性'openDatabase' - Cannot read property 'openDatabase' of undefined in android 未捕获的TypeError:无法在file:///android_asset/www/app.js读取未定义的属性'connection':1 - Uncaught TypeError: Cannot read property 'connection' of undefined at file:///android_asset/www/app.js:1 未捕获的类型错误:无法使用 PhoneGap 读取跨平台 Android 的 SAPUI5 移动应用程序中未定义的属性“标签” - Uncaught TypeError: Cannot read property 'Label' of undefined in SAPUI5 Mobile App for cross platforms Android using PhoneGap 无法读取未定义的 react-native-app-auth 的属性“授权” - Cannot read property 'authorize' of undefined react-native-app-auth 无法在Titanium Android仿真器中加载应用 - Cannot load the app in titanium android emulator Cordova android模拟器“无法读取属性'替换'未定义” - Cordova android emulator “cannot read property 'replace' of undefined” android / phonegap未捕获TypeError:无法读取文件中未定义的属性'downloader' - android/phonegap Uncaught TypeError: Cannot read property 'downloader' of undefined at file Phonegap错误 - “在Android上无法读取未定义的属性'捕获' - Phonegap Error - “Cannot read property 'capture' of undefined” on Android 无法读取未定义、expo-contacts、ANDROID 的属性“getContactsAsync” - Cannot read property 'getContactsAsync' of undefined, expo-contacts, ANDROID
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM