I make a new project in the newest Android Studio, copy the udp class and wirehair class into it, everything is OK except this line:
import sun.nio.ch.DirectBuffer
problems show:
Unresolved reference: sun
Unresolved reference: DirectBuffer
here is my build gradle:
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
I make a new project in the newest Android Studio, copy the udp class and wirehair class into it, everything is OK except this line: import sun.nio.ch.DirectBuffer
problems show: Unresolved reference: sun Unresolved reference: DirectBuffer
here is my build gradle:
plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' }
android { compileSdk 32 packagingOptions { exclude 'META-INF/LICENSE' exclude 'META-INF/DEPENDENCIES' }
}
dependencies {
}
how to fix it? thanks.