您的位置:首页 > 移动开发 > Android开发

Unable to resolve target 'android-8'

2014-08-18 16:50 411 查看
导入Android例子程序时出现:



尝试解决The
project was not built since its buildpath is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project.

解决方法:

点击右键Project-->Properties--->BuildPath--->Add External Jars--> 找到你的 android-xx.Jar 例如我的是android-10.jar,发现此问题解决。但问题Unable to resolve target 'android-8'依旧存在。由于我的版本是android-17和android-10的,所以不兼容,

解决办法:1、修改project.properties里的target=android-8(若是android2.2开发的情况下)

2. 项目右键打开项目属性,在左侧选择Android,在右侧选择具体的android版本。

选择好后,再项目右键,在android Tools下选择Fix Project Properties

3. 如果没有default properties, 自己建下,然后target=android-10

此方法来自帖子http://blog.163.com/jenny_tyb/blog/static/208669106201272922654303/

按照方法第一步,修改了project.properties里的target=android-8后就可以了。其实在这里问题的根源在Unable to resolve target 'android-8',即是ADK版本不同,只要解决了这个问题,The project was
not built since its build path is incomplete. Cannot findthe class file for java.lang.Object. Fix the build path then try building thisproject这个问题也解决了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: