Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

D/NetworkSecurityConfig: No Network Security Config specified, using platform default W/System.err:

edited November 21 in Android

I designing application that uses CustomListView to load images and text from a mysql database but am getting below error.Dont know how to solve it.

Android customListview code

` protected String doInBackground(Void... voids)
{
try
{
URL url=new URL(webUrl);
HttpURLConnection httpURLConnection=(HttpURLConnection)url.openConnection();
BufferedReader bufferedReader=new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
StringBuilder stringBuilder=new StringBuilder();

                String json;
                while ((json=bufferedReader.readLine())!=null)
                {
                    stringBuilder.append(json+"\n");
                }
                return  stringBuilder.toString().trim();
            }
            catch (Exception e)
            {
                e.printStackTrace();

                return null;
            }
        }

`

HttpConnection error

11/21 17:41:16: Launching app
$ adb install-multiple -r -t -p net.techoverload.www.customlistview C:\Users\acer\AndroidStudioProjects\CustomListView\app\build\intermediates\split-apk\debug\slices\slice_6.apk 
Split APKs installed
$ adb shell am start -n "net.techoverload.www.customlistview/net.techoverload.www.customlistview.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 21525 on device emulator-5554
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/System: ClassLoader referenced unknown path: /data/app/net.techoverload.www.customlistview-1/lib/x86
I/InstantRun: starting instant run server: is main process
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
W/System.err: java.net.SocketException: Permission denied
W/System.err:     at java.net.Socket.createImpl(Socket.java:454)
W/System.err:     at java.net.Socket.getImpl(Socket.java:517)
W/System.err:     at java.net.Socket.setSoTimeout(Socket.java:1108)
W/System.err:     at com.android.okhttp.Connection.connectSocket(Connection.java:195)
W/System.err:     at com.android.okhttp.Connection.connect(Connection.java:172)
W/System.err:     at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)
W/System.err:     at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:130)
W/System.err:     at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329)
W/System.err:     at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)
W/System.err:     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
W/System.err:     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:405)
W/System.err:     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:243)
W/System.err:     at net.techoverload.www.customlistview.MainActivity$1GetJSON.doInBackground(MainActivity.java:45)
W/System.err:     at net.techoverload.www.customlistview.MainActivity$1GetJSON.doInBackground(MainActivity.java:26)
W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:304)
W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
W/System.err:     at java.lang.Thread.run(Thread.java:761)
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
D/EGL_emulation: eglCreateContext: 0xa5584120: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xa5584120: ver 2 0 (tinfo 0xa5583560)
W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
D/EGL_emulation: eglMakeCurrent: 0xa5584120: ver 2 0 (tinfo 0xa5583560)
D/EGL_emulation: eglMakeCurrent: 0xa5584120: ver 2 0 (tinfo 0xa5583560)
D/EGL_emulation: eglMakeCurrent: 0xa5584120: ver 2 0 (tinfo 0xa5583560)
Sign In or Register to comment.