我刚接触Android,今天试者导入一个工程,准备开始学习,导入后出现如下问题
[2011-11-16 17:35:18 - ex07_toast_and_notification] Unable to resolve target 'android-2'
编译报错为(4处错误)
Description Resource Path Location Type
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project ex07_toast_and_notification Unknown Java Problem
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files ActivityToast.java /ex07_toast_and_notification/src/com/eoeandroid/toast_and_notification line 1 Java Problem
Unable to resolve target 'android-2' ex07_toast_and_notification Unknown Android Target Problem
Unable to resolve target 'android-2' until the SDK is loaded. ex07_toast_and_notification Unknown Android Target Problem
望前辈们指点一下,工程是书上的例子,没问题的,我试着导了好几个,都产生类似的问题,谢谢!

解决方案 »

  1.   

    我也遇到这样的问题了,以前用着好好的,不知道为什么昨天突然全部报错,Description Resource Path Location Type
    Unable to resolve target 'android-7' test Unknown Android Target Problem
      

  2.   

    就是提示本地没有那个sdk   楼主是没有sdk版本2    1楼没有sdk版本7
      

  3.   

    可以在项目的property的属性文件中的sdk版本属性修改一下
      

  4.   

    在文件project.properties中把
    target=android-2
    后面的2给为你有的版本。