2015-04-07 83 views
2

在編寫一個Android項目,我得到這個錯誤:com.google.inject.Key解決不了

The type com.google.inject.Key cannot be resolved. It is indirectly referenced from required .class files

這表明「ConfigureBuildPath」作爲一個可能的解決方案,但我不確定這是什麼意思以及如何做到這一點。我如何調試和修復這個錯誤?

回答

1

這意味着您沒有構建項目所需的類路徑上的所有內容。您需要將包含com.google.inject.Key的jar添加到構建路徑。

+0

我該如何添加這個罐子? –