LG Connect SDK issue with Android 7
<p>I have an app that works fine with Android 6, but freezes on Android 7. All I have is added ConnectSDK by LG (<a href="http://www.svlconnectsdk.com/docs/1-6-0/android/" rel="nofollow">http://www.svlconnectsdk.com/docs/1-6-0/android/</a>). The app freezes as soon as I call start on DiscoveryManager's object. And I get the following stacktrace:</p>

<blockquote>
  <p>10-26 13:32:51.678: W/System(7569): ClassLoader referenced unknown path: /data/app/com.testconnectsdk.test-1/lib/arm64
  10-26 13:32:51.774: W/System.err(7569): java.net.SocketException: Socket closed
  10-26 13:32:51.774: W/System.err(7569):              at java.net.PlainDatagramSocketImpl.receive0(Native Method)
  10-26 13:32:51.774: W/System.err(7569):              at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:147)
  10-26 13:32:51.774: W/System.err(7569):              at java.net.DatagramSocket.receive(DatagramSocket.java:808)
  10-26 13:32:51.774: W/System.err(7569):              at com.connectsdk.discovery.provider.ssdp.SSDPClient.multicastReceive(SSDPClient.java:109)
  10-26 13:32:51.774: W/System.err(7569):              at com.connectsdk.discovery.provider.SSDPDiscoveryProvider$2.run(SSDPDiscoveryProvider.java:271)
  10-26 13:32:51.774: W/System.err(7569):              at java.lang.Thread.run(Thread.java:761)</p>
</blockquote>

<p>The code is very simple :</p>

<pre><code>public class MainActivity extends Activity implements DiscoveryManagerListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        DiscoveryManager.init(getApplicationContext(), null);
        final DiscoveryManager dm = DiscoveryManager.getInstance();

        new Handler().postDelayed(new Runnable() {

            @Override
            public void run() {
                dm.addListener(MainActivity.this);
            }
        }, 2000);

        new Handler().postDelayed(new Runnable() {

            @Override
            public void run() {
                dm.start();
            }
        }, 4000);



        new Handler().postDelayed(new Runnable() {

            @Override
            public void run() {
                Intent i = new Intent(MainActivity.this, OtherActivity.class);
                startActivity(i);
            }
        }, 6000);

    }

    private static final String TAG = MainActivity.class.getName();

    @Override
    public void onDeviceAdded(DiscoveryManager manager, ConnectableDevice device) {
        // TODO Auto-generated method stub
        Log.d(TAG, "onDeviceAdded");

    }

    @Override
    public void onDeviceUpdated(DiscoveryManager manager, ConnectableDevice device) {
        // TODO Auto-generated method stub
        Log.d(TAG, "onDeviceUpdated");
    }

    @Override
    public void onDeviceRemoved(DiscoveryManager manager, ConnectableDevice device) {
        // TODO Auto-generated method stub
        Log.d(TAG, "onDeviceRemoved");
    }

    @Override
    public void onDiscoveryFailed(DiscoveryManager manager, ServiceCommandError error) {
        // TODO Auto-generated method stub
        Log.d(TAG, "onDiscoveryFailed");
    }
}
</code></pre>

<p>Any idea why is it crashing? Pasting my manifest:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.testconnectsdk.test"
    android:versionCode="1"
    android:versionName="1.0" &gt;

    &lt;uses-sdk
        android:minSdkVersion="15"
        android:targetSdkVersion="15" /&gt;

    &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
    &lt;uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/&gt;
    &lt;application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" &gt;
        &lt;activity
            android:name=".MainActivity"
            android:label="@string/app_name" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;

                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
        &lt;activity android:name="OtherActivity"&gt;&lt;/activity&gt;
    &lt;/application&gt;

&lt;/manifest&gt;
</code></pre>

<p>Kindly please help. Badly need it. Thanks</p>