The project cannot be built until build path errors are resolved解决方案
2015-11-03 15:12
573 查看
今天从同事那检索项目导入后build发现了The project cannot be built until build path errors are resolved这个问题:
原因是因为团队代码环境不一致,项目中可能会引入框架核心源码的jar,由于不一致而造成的,解决办法就是删除后重新引入本地的:
方案一:
右键项目(You Project) -> Build path -> Configure Build Path -> Java Build Path -> Libraries 将带有 “X”的remove掉,然后重新导入 add build path。
方案二:
在你的项目根目录下面会有一个.classpath文件,打开后做如下修改,比如我的是
修改后:
—— lovey hy.
【欢迎上码】
【微信公众号搜索 h2o2s2】
原因是因为团队代码环境不一致,项目中可能会引入框架核心源码的jar,由于不一致而造成的,解决办法就是删除后重新引入本地的:
方案一:
右键项目(You Project) -> Build path -> Configure Build Path -> Java Build Path -> Libraries 将带有 “X”的remove掉,然后重新导入 add build path。
方案二:
在你的项目根目录下面会有一个.classpath文件,打开后做如下修改,比如我的是
<?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> <classpathentry kind="src" path="src"/> <classpathentry kind="src" path="gen"/> <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> <classpathentry kind="output" path="bin/classes"/> </classpath>
修改后:
<?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> <classpathentry kind="src" path="src"/> <classpathentry kind="src" path="gen"/> </classpath>
—— lovey hy.
【欢迎上码】
【微信公众号搜索 h2o2s2】
相关文章推荐
- Longest Increasing Subsequence
- hdoj 3450 Counting Sequences 【离散化 + 树状数组优化dp】
- UISwipeGestureRecognizer手势识别
- UINavigationItem UINavigationBar 关系分析
- Ligerui表格基本操作(二)
- request.getRequestURL() getRequestURI区别
- UIButton (常用点击按钮)
- 关于安装WindowBuilder问题
- request.getSession(true)和request.getSession(false)的区别
- iOS9 系统分享调用之UIActivityViewController
- iOS开发日记42-UIScrollView与UITableview
- HBuilder Android平台离线打包支付插件配置
- EasyUI ComboBox应用示例
- 浅谈Looper handler Message MessageQueue bundle parcel parcelable
- 代码手写UI,xib和StoryBoard间的博弈,以及Interface Builder的一些小技巧
- Permutation Sequence
- 优化编译环境Optimizing a build environment (optional)
- Android编译准备Establishing a Build Environment
- UIButton拖动响应事件,距离问题
- IOS开发之 ---- iOS8中提示框的使用UIAlertController(UIAlertView和UIActionSheet二合一)