2013-03-09 76 views
0

我有以下問題:當我嘗試從實際設備上的必要項進行部署時,無法通過.apk創建階段。找到.aidl文件後,Ant停止出現錯誤。部署在必需品?

這裏是我從螞蟻得到輸出(I添加回聲看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

愚蠢的我。包含用於android的構建任務的ant「.jar」是在我使用1.8時爲jre 1.7構建的。只需安裝1.7版本並更改PATH變量。

相關問題