1

我关注 了 https://developers.facebook.com/docs/android/getting-started/facebook-sdk-for-android/

逐字逐句直到第 4 步,现在我无法运行任何应用程序,它们都有错误。我在 Eclipse 中运行,我收到消息说我的程序包含错误,我必须在运行之前修复它们。

怎么了?eclipse 似乎无法识别 facebook 的内容,但我逐字逐句地按照教程进行操作。我已经多次清理了项目,尝试了一个新的工作区并单独清理了那个和所有文件。我很困难地更新了所有的 SDK,我现在不知道该做什么。

这是日食说的

[2013-09-18 18:50:46 - ProfilePictureSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - GraphApiSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - Scrumptious] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - PlacePickerSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - SessionLoginSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - RPSSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - FriendPickerSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - HelloFacebookSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - FacebookSDK] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - SwitchUserSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - FriendPickerSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - GraphApiSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - HelloFacebookSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - PlacePickerSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - ProfilePictureSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - Scrumptious] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - SessionLoginSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - SwitchUserSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:46 - FacebookSDK] Project compiler settings changed. Clean your project.

[2013-09-18 18:50:46 - FriendPickerSample] Project compiler settings changed. Clean your project.

[2013-09-18 18:50:46 - GraphApiSample] Project compiler settings changed. Clean your project.

[2013-09-18 18:50:47 - HelloFacebookSample] Project compiler settings changed. Clean your project.

[2013-09-18 18:50:47 - PlacePickerSample] Project compiler settings changed. Clean your project.
[2013-09-18 18:50:47 - ProfilePictureSample] Project compiler settings changed. Clean your project.

[2013-09-18 18:50:47 - FacebookSDK] Unable to resolve target 'android-8'

[2013-09-18 18:50:47 - ProfilePictureSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:47 - GraphApiSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:47 - Scrumptious] Unable to resolve target 'android-8'

[2013-09-18 18:50:47 - PlacePickerSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:47 - SessionLoginSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:47 - RPSSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:47 - FriendPickerSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:47 - HelloFacebookSample] Unable to resolve target 'android-8'

[2013-09-18 18:50:47 - SwitchUserSample] Unable to resolve target 'android-8'
4

1 回答 1

1

看看你的 AndroidManifest.xml,正是这一行:

<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" />

并检查您的最低版本和目标版本!

*这条线是我的一个项目的一个例子;)

编辑:还要在 Eclipse 中检查您的“Android SDK 管理器”,并下载 de API 8

于 2013-09-18T23:08:13.057 回答