2013-08-28 48 views
1

建設鈦的APK與3.0.0.GA SDK我收到以下錯誤,而試圖使鈦使用Ant腳本錯誤而使用Ant腳本

[exec] [ERROR] Error(s) compiling generated Java code 
[exec] [ERROR] D:\Workarea\experiment\teacher\digitallyTE\build\android\gen 

\com\edurite\digiteacher\DigitallyteApplication.java:36: cannot find symbol [exec] symbol : class AssetCryptImpl [exec] location: class com.edurite.digiteacher.DigitallyteApplication [exec] KrollAssetHelper.setAssetCrypt(new AssetCryptImpl()) ; [exec]^[exec] Note: D:\Workarea\experiment\teacher\digitallyTE\build\android\gen\c om\edurite\digitallyTE\AssetCryptImpl.java uses unchecked or unsafe operations. [exec] Note: Recompile with -Xlint:unchecked for details. [exec] 1 error [exec] 

BUILD FAILED D:\Workarea\experiment\teacher\build.xml:11: exec returned: 1 

回答

0

與3.0.0.GA建設前一段這個問題被問到。但我想我的發現可能會很有趣,因爲最後發生在我身上的一個AssetCryptImpl.java:44: error: cannot find symbol錯誤。 AssetCryptImpl.java模板在構建期間填充了一些資產變量(檢查~/.titanium/mobilesdk/linux/6.1.0.GA/android/cli/commands/_build.js)。這個過程至少依賴於Linux上的某些系統命令。這些命令在構建期間因分段錯誤而失敗。因此資產變量不會在AssetCryptImpl.java模板內呈現,並且Java編譯器會抱怨丟失的符號。

檢查你的編譯輸出線像

[INFO] : Encrypting JavaScript files: /home/simon/.titanium/mobilesdk/linux/6.1.0.GA/android/titanium_prep.linux64 "com.example.id" "/home/simon/test/Asdf/build/android/assets" "alloy/CFG.js" "app.js" "alloy/backbone.js" "alloy/constants.js" "alloy/controllers/BaseController.js" "alloy/controllers/index.js" "alloy/styles/index.js" "alloy/sync/localStorage.js" "alloy/sync/properties.js" "alloy/sync/sql.js" "alloy/underscore.js" "alloy/widget.js" "alloy.js" "ti.cloud/ti.cloud.js" "_app_props_.json" 

,並嘗試運行包含的命令。