安卓eclipse工程导入叹号、出错

来源:互联网 发布:usb转网络接口怎么驱动 编辑:程序博客网 时间:2024/05/01 20:10

导入时项目没有gen目录

解决方法:

一,将项目clean 一下。

二,项目---右键---android tool---fix property.

 

ADT版本不同、提示com.android.ide.eclipse.adt.DEPENDENCIES出错

将.classpath文件修改

  1. <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>  
  2. <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES

改成

  1. <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>  

<classpathentry kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>

 

工程中classpath中指向的包路径错误

    解决方法:在项目名称上点右键选择Properties,然后选择Java Bulid Path中的libraries选项,其中出现红色x号的路径为错误路径,删除之后,通过Add External Jars添加正确路径,点击确定之后,在Package Explorer中刷新一下。