When I changed my CompileSDK version to Oreo, Application is not able to perform network operations over TLS protocol on Oreo devices (Android N too). I just get the error message mentioned in the question. As stated on official documentations here,
The system properties net.dns1, net.dns2, net.dns3, and net.dns4 are no longer available, a change that improves privacy on the platform.
I was looking for alternatives to this issue. I do not know very much about network protocols but I just wanted some stuff to surf for this thing like something that let me understand what these things are and why they did this.
AndroidUsingLinkProperties.setup(AppContext.getAppContext());
More information in the following link [github.com/MiniDNS/minidns/issues/74] but for me the above line was sufficent. – Liu