2016-06-08 56 views
0

信息有關我的編譯環境:不能構建Android模塊

  • 的Mac OS 10.11.2
  • 鈦SDK 5.3.0.GA
  • 鈦CLI 5.0.8
  • Android的23
  • Eclipse Java開發工具3.9.2v20140221-1700

我試圖建立這個模塊tiadbuddiz-android,但終端給了我此錯誤消息: terminal log

Titanium Command-Line Interface, CLI version 5.0.8, Titanium SDK version 5.3.0.GA 
Copyright (c) 2012-2015, Appcelerator, Inc. All Rights Reserved. 

Please report bugs to http://jira.appcelerator.org/ 

[ERROR] Unable to compile project because the 'sdk-version' in the tiapp.xml is not installed 

The project's sdk-version is currently set to 3.2.0.GA, which is not installed. 

Update the sdk-version in the tiapp.xml to one of the installed Titaniums SDKs: 
    3.5.2.v20160311103211 
    4.1.1.v20160311104258 
    5.1.1.GA 
    5.1.2.GA 
    5.2.0.GA 
    5.2.2.GA 
    5.3.0.GA 
or run 'titanium sdk install 3.2.0.GA' to download and install Titanium SDK 3.2.0.GA 
+0

我也收到這個錯誤。我試着編譯使用5.2.2.GA和5.3.0.GA,一箇舊模塊和一個新的。我的工作空間根目錄或模塊根目錄中沒有任何tiapp或timodule文件。任何建議? –

回答

0

鈦SDK版本在您的項目設置是3.2.0.GA,但你正在試圖建立與5.3.0.GA.

嘗試更新您的項目版本5.3.0.GA或INSTAL版本3.2.0.GA

+0

謝謝你的回答。 我沒有設置'sdk版本'的任何地方。爲此,我不明白爲什麼會出現此錯誤。 在我的** build.properties **中,我設置了SDK 5.3.0.GA – astrovicApps

+0

我也收到這個錯誤:[error image](https://jira.appcelerator.org/secure/attachment/59542/Schermata%202016 -06-09%20alle%2012.39.42.png) – astrovicApps

0

地獄後兩天,我發現我的問題的原因!在我的工作空間的根目錄中,有一箇舊的tiapp.xml文件(我不知道它是如何到達那裏的......)。刪除它之後,我從CLI的Appcelerator Studio中設法構建了模塊。