请前辈指教

heiciwei123 2011-11-16 05:41:31
我刚接触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
望前辈们指点一下,工程是书上的例子,没问题的,我试着导了好几个,都产生类似的问题,谢谢!
...全文
643 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
menghnhhuan 2012-01-12
  • 打赏
  • 举报
回复
在文件project.properties中把
target=android-2
后面的2给为你有的版本。
Jobernowl 2012-01-12
  • 打赏
  • 举报
回复
可以在项目的property的属性文件中的sdk版本属性修改一下
Jobernowl 2012-01-12
  • 打赏
  • 举报
回复
就是提示本地没有那个sdk 楼主是没有sdk版本2 1楼没有sdk版本7
huan838225 2012-01-12
  • 打赏
  • 举报
回复
我也遇到这样的问题了,以前用着好好的,不知道为什么昨天突然全部报错,Description Resource Path Location Type
Unable to resolve target 'android-7' test Unknown Android Target Problem

80,350

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧