NoSuchMethodError exception when using com.google.common.base.Splitter

前端 未结 7 2032
一个人的身影
一个人的身影 2021-01-17 07:38

I\'m trying to use com.google.common.base.Splitter as follows

Iterable segs = Splitter.on(\"/\").split(\"one/two/three/four/five\");

for (Stri         


        
7条回答
  •  生来不讨喜
    2021-01-17 08:17

    I encountered the same problem. It turned out that I used a older version of guava. Go to this website:https://code.google.com/p/guava-libraries/, and download a newer version.

    By the way,google-collections was renamed to Guava.

提交回复
热议问题