2012-04-25 28 views
2

我在我的Android項目運行的構建目標,它失敗,這在控制檯日誌:錯誤建立時的Android項目引用的Facebook

-setup: 
    [echo] Creating output directories if needed... 
    [echo] Gathering info for MyGameProject... 
    [setup] Android SDK Tools Revision 19 
    [setup] Project Target: Android 2.2 
    [setup] API level: 8 
    [setup] 
    [setup] ------------------ 
    [setup] Resolving library dependencies: 
    [setup] E:\Android\workspace\MyGameProject: ../../facebook-android-sdk/facebook => E:\Android\facebook-android-sdk\facebook 
    [setup] ------------------ 
    [setup] Ordered libraries: 
    [setup] E:\Android\facebook-android-sdk\facebook 
    [setup] ------------------ 
    [setup] API<=15: Adding annotations.jar to the classpath. 
    [setup] ------------------ 
-build-setup: 
    [echo] Building Libraries 

BUILD FAILED 
E:\Android\workspace\MyGameProject\build.xml:51: The following error occurred while executing this line: 
C:\Android\android-sdk-windows\tools\ant\build.xml:515: The following error occurred while executing this line: 
Target "${build.target}" does not exist in the project "facebook". 

有誰知道如何解決它?

+0

你能顯示Manifest代碼嗎?你用什麼庫來整合Facebook? – Bandreid 2012-04-25 08:04:47

+0

你還更新了Facebook庫項目嗎? – Vasu 2012-05-12 08:25:08

回答

1

facebook-android-sdk默認沒有build.xml

您可以創建;轉到facebook-sdk目錄並執行命令行:

android update project -p . 
+0

感謝您的回答。我試着執行命令。我在facebook文件夾中有一個build.xml。但是在ant中運行構建目標仍然會顯示錯誤。這不是一個錯誤,會阻止我的遊戲構建剩餘的遊戲。即使出現此錯誤,我的遊戲仍然運行。 – Lisa 2012-07-04 03:51:49

相關問題