0

I have a problem in my android studio(macosx) : in InetAddress.java some import have problem

import sun.net.util.IPAddressUtil;

import android.system.GaiException;

import android.system.StructAddrinfo;

import libcore.io.Libcore;

editor says

cannot resolve symbol IPAddressUtil

enter image description here

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245

1 Answers1

1

I think those classes are not in Android SDK (IpAddressUtil, Libcore). Also, it is discouraged to use classes from sun.* package in your programs.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62