1
我試圖從谷歌Guava使用InternetDomainName
函數;我已經使用Eclipse用Scala編寫的代碼,它編譯罰款,但是當我運行它,我不斷收到一條錯誤消息:使用谷歌番石榴錯誤 - 不是在公共後綴:display_url
java.lang.IllegalStateException: Not under a public suffix: display_url
at com.google.common.base.Preconditions.checkState(Preconditions.java:176)
at com.google.common.net.InternetDomainName.topPrivateDomain(InternetDomainName.java:445)
我已經添加"com.google.guava" % "guava" % "16.0"
到依賴庫,並添加番石榴圖書館到項目。我不確定它是什麼意思。是否因爲我輸入的數據不是URL?