NetworkSecurityConfig: No Network Security Config specified — Android 7.0 error?

前端 未结 3 1387
醉话见心
醉话见心 2020-11-29 12:28

I have some problem for android 7.0.0.

I use volley library for my application, and it works well except for Android 7.0

Here is part of my code;

<         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 12:53

    So, I don't think the previous answer was clear enough. (I spent a couple of hours trying to "debug" this)

    If you're seeing this prompt, the fact that it says

    D/ blablabla

    means that this is a Debug, and not an error. It's more like a notification to let you know that you didn't specify the NetworkSecurityConfig, and that it decided by itself to set it to default. Nothing wrong.

    Your error, however, will show itself as:

    E/ blebleble

    TL;DR You might be looking at the wrong place if you're trying to debug an error.

提交回复
热议问题