3

我在我的 Android 项目中运行一个构建目标,它在控制台日志中失败了:

-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". 

有谁知道如何修理它?

4

1 回答 1

1

facebook-android-sdk 默认没有 build.xml

您可以创建;转到 facebook-sdk 目录并执行命令行:

android update project -p .
于 2012-05-15T11:40:06.140 回答