Android API-23: InetAddressUtils replacement

后端 未结 5 1982
误落风尘
误落风尘 2020-12-30 01:07

Switching to Android Marshmallow API, I was using org.apache.http.conn.util.InetAddressUtils for InetAddressUtils.isIPv4Address(ipAddress) in a cod

5条回答
  •  粉色の甜心
    2020-12-30 01:27

    To use this library in SDK 23 add following line in project's build.gradle file:

    useLibrary 'org.apache.http.legacy'
    

提交回复
热议问题