android中出现The project cannot be built until build path errors are resolved问题怎么办

小编给大家分享一下android中出现The project cannot be built until build path errors are resolved问题怎么办,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

“The project cannot be built until build path errors are resolved” 的解决方法:

只要修改.classpath文件即可。

原.classpath文件为:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="src" path="gen"/>
    <classpathentry kind="src" path="libs"/>
    <classpathentry exported="true" kind="con"
path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
    <classpathentry kind="lib" path="libs/locSDK_4.1.jar"/>
    <classpathentry kind="src" path="/BaiduMap01"/>
    <classpathentry kind="output" path="bin/classes"/>
</classpath>

修改后的xml文件为:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="src" path="gen"/>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
</classpath>

记得把需要的lib包复制到libs文件夹下外,还要在java build path 下的Libraries下把刚才加入的jar包添加进来[add jars...]。

以上是“android中出现The project cannot be built until build path errors are resolved问题怎么办”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!