• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

androidstudio StrictMode library

I am not able to use the StrictMode.ThreadPolicy library even after
import android.os.StrictMode;

StrictMode.ThreadPolicy policy =new StrictMode.ThreadPolicy().Builder().permitAll().build();
It returns
ThreadPolicy is not public in android.os.StrictMode.ThreadPolicy. Cannot be accessed from outside package.

Anyone encountered similar problem or know the solution?

Thanks in advance!
 
Back
Top Bottom