7

嗨,我正在尝试将 Facebook 集成到我的应用程序中,因此我得到了集成指南的指导

但是我在第 3 步中遇到了错误,当我导入时,控制台显示了一些错误,例如

[2013-03-08 10:16:07 - MessagesTask] Unable to resolve target 'android-8'
[2013-03-08 10:17:00 - MessagesTask] Unable to resolve target 'android-8'
[2013-03-08 15:57:54 - ProfilePictureSample] Unable to resolve target 'android-8'
[2013-03-08 15:57:54 - BooleanOGSample] Unable to resolve target 'android-8'
[2013-03-08 15:57:54 - Hackbook] Unable to resolve target 'android-8'
[2013-03-08 15:57:55 - GraphApiSample] Unable to resolve target 'android-8'
[2013-03-08 15:57:55 - Scrumptious] Unable to resolve target 'android-8'
[2013-03-08 15:57:55 - PlacePickerSample] Unable to resolve target 'android-8'
[2013-03-08 15:57:55 - SessionLoginSample] Unable to resolve target 'android-8'
[2013-03-08 15:57:55 - FriendPickerSample] Unable to resolve target 'android-8'
[2013-03-08 15:57:55 - HelloFacebookSample] Unable to resolve target 'android-8'
[2013-03-08 15:57:55 - FacebookSDK] Unable to resolve target 'android-8'
[2013-03-08 15:57:56 - SwitchUserSample] Unable to resolve target 'android-8'
[2013-03-08 15:58:05 - ProfilePictureSample] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\ProfilePictureSample\bin\jarlist.cache
[2013-03-08 15:58:07 - FacebookSDK] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - ProfilePictureSample] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - BooleanOGSample] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - Hackbook] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - GraphApiSample] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - Scrumptious] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - PlacePickerSample] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - SessionLoginSample] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - FriendPickerSample] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - HelloFacebookSample] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - SwitchUserSample] Unable to resolve target 'android-8'
[2013-03-08 15:58:07 - FacebookSDK] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\facebook\bin\jarlist.cache
[2013-03-08 15:58:07 - ProfilePictureSample] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\ProfilePictureSample\bin\jarlist.cache
[2013-03-08 15:58:07 - BooleanOGSample] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\BooleanOGSample\bin\jarlist.cache
[2013-03-08 15:58:07 - Hackbook] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\Hackbook\bin\jarlist.cache
[2013-03-08 15:58:07 - GraphApiSample] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\GraphApiSample\bin\jarlist.cache
[2013-03-08 15:58:07 - Scrumptious] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\Scrumptious\bin\jarlist.cache
[2013-03-08 15:58:07 - PlacePickerSample] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\PlacePickerSample\bin\jarlist.cache
[2013-03-08 15:58:07 - SessionLoginSample] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\SessionLoginSample\bin\jarlist.cache
[2013-03-08 15:58:07 - FriendPickerSample] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\FriendPickerSample\bin\jarlist.cache
[2013-03-08 15:58:07 - HelloFacebookSample] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\HelloFacebookSample\bin\jarlist.cache
[2013-03-08 15:58:07 - SwitchUserSample] WARNING: unable to write jarlist cache file C:\Users\gtm\facebook-android-sdk-3.0\samples\SwitchUserSample\bin\jarlist.cache

所以你能帮我解决这个问题吗?

4

5 回答 5

20

那是因为您的 SDK 中没有 API 级别 8。右键单击项目,然后转到 Properties > Android 并选择另一个可用的 API

于 2013-03-08T10:55:15.613 回答
3

打开Android SDK Manager并安装Android 2.2 (API 8)

于 2013-04-18T15:46:24.163 回答
2

如果未安装 API 级别 8,则使用 Android SDK 安装它。

如果已安装,请右键单击项目。属性>Android。选择构建路径为 Android 2.2 (API Level 8)

于 2013-07-30T12:39:22.760 回答
0

您只需要安装 API 8。

希望它有帮助!

于 2013-03-08T10:51:06.867 回答
0

只需将其添加到清单中

<uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" android:maxSdkVersion="17"/>
于 2013-03-08T11:02:04.483 回答