netty庫包衝突問題

參考 http://www.yayihouse.com/yayishuwu/chapter/1603

報錯信息:Caused by: java.lang.NoSuchFieldError: 

netty-all是netty-*.jar包的全家桶。有了netty-all,其它幾個不能有了(除了netty-tcnative-boring***)。否則相當於同時依賴了兩個版本的netty包
netty-buffer
netty-codec
netty-codec-dns
netty-codec-http
netty-codec-http2
netty-codec-socks
netty-common
netty-handler
netty-handler-proxy
netty-resolver
netty-resolver-dns
netty-transport
netty-transport-native-epoll
netty-transport-native-unix-common

這種情況下,會概率性的出現調取不同版本的netty包,導致僅存在於特定版本的包中的某些函數找不到,從而報錯。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章