解决方法:修改.classpath

修改之前的.classpath

  1. <?xml version="1.0" encoding="UTF-8"?> 
  2.   <classpath> 
  3.     <classpathentry kind="src" path="src"/>   
  4.     <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>   
  5.     <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>   
  6.     <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre6"/>   
  7.     <classpathentry kind="src" path="gen"/> 
  8.     <classpathentry kind="output" path="bin"/> 
  9. </classpath> 

修改之后:

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