2011-09-18 129 views
0

我很想在我的应用程序来实现touchlist小工具,在这里提供:无法运行touchlist项目

https://github.com/commonsguy/cwac-touchlist

所以,我下载了它,我导入的项目文件夹在Eclipse中;我想作为一个Ant构建运行,但我得到这个错误:

Buildfile: C:\commonsguy-cwac-touchlist-af26192\build.xml 

BUILD FAILED 
C:\commonsguy-cwac-touchlist-af26192\build.xml:49: taskdef class com.android.ant.SetupTask cannot be found 
using the classloader AntClassLoader[] 

Total time: 328 milliseconds 

这有什么错什么,我这样做的远?这让我疯狂......

回答

1

你必须右键单击你的项目并选择属性。 在打开的对话框中,从左侧选择Android并在库部分中选择添加并添加cwac-touchlist项目。

这是因为cwac-touchlist已转换为Android库项目,因此您必须将其作为库添加到您自己的项目中。