2012-11-12 156 views
0

当我将新项目导入到eclipse中时,我的eclipse显示了项目文件夹中的错误。我无法找到原因。请参阅附件中的错误图片。将新项目导入eclipse时出错

enter image description here

[2012-11-12 12:11:32 - ProfilePictureSample] Unable to resolve target 'android-8' 
[2012-11-12 12:11:32 - BooleanOGSample] Unable to resolve target 'android-8' 
[2012-11-12 12:11:32 - Hackbook] Unable to resolve target 'android-8' 
[2012-11-12 12:11:32 - Scrumptious] Unable to resolve target 'android-8' 
[2012-11-12 12:11:32 - PlacePickerSample] Unable to resolve target 'android-8' 
[2012-11-12 12:11:32 - SessionLoginSample] Unable to resolve target 'android-8' 
[2012-11-12 12:11:32 - FriendPickerSample] Unable to resolve target 'android-8' 
[2012-11-12 12:11:32 - HelloFacebookSample] Unable to resolve target 'android-8' 

这些消息在控制台中显示的错误。我在eclipse中使用sdk版本4.1(API级别16)和4.0.3(API级别15)。

+0

下载SDK平台的Android 2.2,API 8,修订3 空 下载样品为SDK API 8,修订版1个 空 完成。没有安装。在安装时得到这个2.2 – Kamalone

回答

4

只需右键单击该项目,进入属性 - > Android的 - >,然后单击项目建设目标为版本的任何一个(Android 2.2或API级别8)

希望这会帮助你。

如果您没有安装所需的版本,请使用SDK管理器进行安装。

0

您需要安装SDK 8(Android 2.2)。

+0

这个日志是什么? [2012-11-12 12:23:33 - SDK Manager]跳过'Google API,Android API 8,修订版2';它取决于未安装的'SDK Platform Android 2.2,API 8,revision 3'。 – Kamalone