2011-09-18 125 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庫項目,因此您必須將其作爲庫添加到您自己的項目中。