vstirbu / ZeroConf

ZeroConf plugin for Cordova/Phonegap 3.0
MIT License
38 stars 21 forks source link

org.apache.http.conn.util.InetAddressUtils not available in Android API level 23 #18

Closed tkem closed 7 years ago

tkem commented 8 years ago

Compiling with Android API level 23 yields this error:

platforms/android/src/com/triggertrap/ZeroConf.java:31: error: package org.apache.http.conn.util does not exist
import org.apache.http.conn.util.InetAddressUtils;

Adding this to my project's platforms/android/build.gradle seems to work around this:

android {
    useLibrary 'org.apache.http.legacy'
}

Apparently, this was deprecated in API level 22, and removed in API level 23.

27leaves commented 8 years ago

I experience the same issue right now.

vstirbu commented 8 years ago

does this help?

vstirbu commented 7 years ago

fixed in 1.2.2