2012-10-08 77 views
1

我正在使用此代碼在eclipse中運行。 Search for Download the sample在eclipse中導入現有項目的錯誤

在eclipse中導入下載的項目後。我得到錯誤的

import android.animation.Animator; 
import android.animation.ObjectAnimator; 
import android.animation.ValueAnimator; 

月食無法找到類Animation,ObjectAnimator and ValueAnimator

任何建議,將不勝感激。 謝謝

+0

請幫我一把。 –

+0

@Royston Pinto你能讓我知道從哪裏我可以得到上述類的corrosponding jar文件? –

+0

這些是由android支持的有效庫,但只有API級別11及更高版本。您的項目是否在這個API下面? –

回答

1

將您的動畫jar包含在eclipse BuildPath中。右鍵點擊項目去Buildpath->Configure Build Path ->Libraries並添加你的jar。也有可能您的Animator和其他類提及的軟件包名稱不正確。檢查出。它應該解決問題。

+0

你能否提供animator.jar文件的鏈接從哪裏可以得到這個jar文件? –

+0

對不起,但我仍然無法找到jar文件。你能幫我解決嗎?「? –

相關問題