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

前端 未结 7 2028
一个人的身影
一个人的身影 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

    There are 2 versions: 1) com.google.guava:guava:26.0-android 2) com.google.guava:guava:26.0-jre . Most likely, you assign wrong version as in my case

提交回复
热议问题