7

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.

Dushyant Suthar
  • 673
  • 2
  • 9
  • 27
  • Did you find something for it? – Yousef khan Sep 14 '18 at 03:25
  • No brother. I used UDP instead. – Dushyant Suthar Sep 17 '18 at 17:40
  • 2
    Try adding the following line before making connection, worked for me as it setup DNS lookup mechanism. `AndroidUsingLinkProperties.setup(AppContext.getAppContext());` More information in the following link [https://github.com/MiniDNS/minidns/issues/74] but for me the above line was sufficent. – Naren Jan 14 '19 at 06:49
  • Moreover I suggest removing 3 from net.dns3 in the title as it might restrict view for someone searching for similar issue but for net.dns1, net.dns2 etc – Naren Jan 14 '19 at 06:52

0 Answers0