reza abolghasemi
reza abolghasemi

Reputation: 3

Cannot resolve symbol IPAddressUtil

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

Upvotes: 0

Views: 541

Answers (1)

Vadim Kotov
Vadim Kotov

Reputation: 8284

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

Upvotes: 1

Related Questions