Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/205.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 钛模块版本不匹配和安装失败_Android_Ios_Titanium_Titanium Mobile_Appcelerator Titanium - Fatal编程技术网

Android 钛模块版本不匹配和安装失败

Android 钛模块版本不匹配和安装失败,android,ios,titanium,titanium-mobile,appcelerator-titanium,Android,Ios,Titanium,Titanium Mobile,Appcelerator Titanium,当我运行appc安装程序时,它总是失败 $ appc setup Finding latest version ...5.2.2 ✓ Version 5.2.2 already installed. ? Do you plan on developing Titanium apps? Yes Checking your environment... You have the latest Titanium SDK release 5.2.2.GA 2016-05-12T08:52:33.55

当我运行appc安装程序时,它总是失败

$ appc setup
Finding latest version ...5.2.2 ✓
Version 5.2.2 already installed.
? Do you plan on developing Titanium apps? Yes

Checking your environment...

You have the latest Titanium SDK release 5.2.2.GA
2016-05-12T08:52:33.552Z | ERROR  | titanium exited with 1 exit code
尽管
appc new
appc ti build-p ios
工作正常(带有警告)

appc ti build-p安卓
没有

$ appc ti build -p android
[Error: Module version mismatch. Expected 46, got 14.]
Appcelerator Command-Line Interface, version 5.2.2
Copyright (c) 2014-2016, Appcelerator, Inc.  All Rights Reserved.

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

如何解决此问题?

问题可能与npm模块安装有关-请按照此处的说明操作-问题可能与npm模块安装有关-请按照此处的说明操作-
$ appc ti build -p android
[Error: Module version mismatch. Expected 46, got 14.]
Appcelerator Command-Line Interface, version 5.2.2
Copyright (c) 2014-2016, Appcelerator, Inc.  All Rights Reserved.

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