Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.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 使用ant脚本使用3.0.0.GA sdk构建Tianium APK时出错_Android_Ant_Titanium_Appcelerator Mobile - Fatal编程技术网

Android 使用ant脚本使用3.0.0.GA sdk构建Tianium APK时出错

Android 使用ant脚本使用3.0.0.GA sdk构建Tianium APK时出错,android,ant,titanium,appcelerator-mobile,Android,Ant,Titanium,Appcelerator Mobile,我在尝试使用ant脚本使用3.0.0.GA构建Tianium时遇到以下错误 [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

我在尝试使用ant脚本使用3.0.0.GA构建Tianium时遇到以下错误

[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

很久以前有人问过这个问题。但我想我的发现可能会很有趣,因为我最后遇到了一个
AssetCryptImpl.java:44:error:cannotfind symbol
错误。在构建过程中,AssetCrypTempl.java模板填充了一些资产变量(检查
~/.tianium/mobilesdk/linux/6.1.0.GA/android/cli/commands/\u 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"
并尝试运行包含的命令