在必需品中部署?

时间:2013-03-09 08:09:42

标签: android qt apk aidl qt-necessitas

我遇到以下问题:当我尝试在实际设备上部署必需品时,我无法完成.apk创建阶段。找到.aidl文件后,Ant会因错误而停止。

这是我从ant获得的输出(我添加了一个echo以查看aidl调用参数,所以它可能看起来很不寻常):

echo: started Sat Mar 09 08:54:26 CET 2013
     [echo] Handling aidl files...

echo: finished Sat Mar 09 08:54:26 CET 2013 (0ms)

echo: started Sat Mar 09 08:54:26 CET 2013
     [echo] executable="D:\necessitas\android-sdk\platform-tools\aidl.exe"
     [echo] framework="D:\necessitas\android-sdk\platforms\android-16\framework.aidl"
     [echo] libraryBinAidlFolderPathRefid="project.library.bin.aidl.folder.path"
     [echo] genFolder="D:\workspace\Test\android\gen"
     [echo] aidlOutFolder="D:\workspace\Test\android\bin\aidl"
     [echo] path="D:\workspace\Test\android\src"

echo: finished Sat Mar 09 08:54:26 CET 2013 (0ms)

aidl: started Sat Mar 09 08:54:26 CET 2013
     [aidl] Found 2 AIDL files.
     [aidl] Compiling 2 AIDL files.
Packaging Error: Command 'D:\necessitas/apache-ant-1.8.4/bin/ant.bat clean debug' failed.Exit code: 1
Error while building/deploying project Test (target: Necessitas Qt 4.8.2 for Android armv7a)
When executing step 'Packaging for Android'

1 个答案:

答案 0 :(得分:1)

傻傻的我。包含android的构建任务的蚂蚁“.jar”是为jre 1.7而构建的,而我使用的是1.8。只需安装1.7版本并更改PATH变量。