我做this問題,我看到了存在ZipInputStream的構造函數調用:ZipInputStream(的BufferedInputStream,字符集)是未定義
ZipInputStream(BufferedInputStream, Charset)
但調試拋出我的錯誤:
ZipInputStream(BufferedInputStream, Charset) is undefined
並給我的建議:
remove the argument to match ZipInputStream(InputStream)
我已經安裝了最新的JDK和JRE 7,但我仍然有同樣的錯誤。
最後,我在這裏解決了這個問題:
Extracting file with ZipInputStream error UTFDataFormatException
看起來你喜歡導入不同的類。確保你已經導入了'java.nio.charset.Charset' – Jens