簡體   English   中英

Android Zxing條碼掃描獲取綁定不匹配

[英]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之間的對話:

http://groups.google.com/group/zxing/browse_thread/thread/2c775d28da3c8454/ac2eb3b45cd3f9bd?show_docid=ac2eb3b45cd3f9bd

我不明白

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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM