1、点击项目,右击选择build path 2、选择configure build path 3、选择第3个,librarys 4、除android那个包,其他的全部removed 5、添加所需的jars包 6、运行项目