[英]android zxing barcode scanning getting Bound mismatch
我正在嘗試從以下鏈接編譯zxing:
http://code.google.com/p/zxing/source/checkout
但它不會被編譯。 它給我以下錯誤:
Bound mismatch: The generic method of(E, E...) of type EnumSet<E> is not applicable for the arguments (BarcodeFormat, BarcodeFormat, BarcodeFormat, BarcodeFormat). The inferred type BarcodeFormat is not a valid substitute for the bounded parameter <E extends Enum<E>>
我通過以下鏈接閱讀了sean和riz之間的對話:
我不明白
You should not be including
CaptureActivity in your code. You should be including core.jar.
如果我不包括core.jar,我將無法獲得
import com.google.zxing.BarcodeFormat
所以我該如何解決這個問題。 我試圖理解zxing作者編寫的代碼。 我不想使用意圖。
我敢肯定,這意味着您實際上並未在編譯從Subversion檢出的代碼,因為它確實可以編譯。 您可能將舊版本的core/
庫(未使用enum
)與新版本的android/
代碼混合了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.