我正在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".
有谁知道如何修复它?
答案 0 :(得分:1)
facebook-android-sdk默认没有build.xml
你可以创造;转到facebook-sdk目录并执行命令行:
android update project -p .