Error while importing new projects into eclipse

天大地大妈咪最大 提交于 2020-01-07 05:39:23

问题


My eclipse is showing errors on the project folder when I am importing a new project into my eclipse. I am not able to find the reason. Please see the attached image of the error.

[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'

These are the error messages are shown in the console. I have sdk version's 4.1 (API level 16) and 4.0.3 (API level 15) in my eclipse.


回答1:


Just right click the project and go to properties -> Android -> and click Project Build Target as Any one of version (Android 2.2 or api level 8)

Hope this will help you .

If you don't have required version installed, Please install it using SDK manager.




回答2:


You need to install SDK 8 (Android 2.2).



来源:https://stackoverflow.com/questions/13339428/error-while-importing-new-projects-into-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!