I'm confused.Why okio cannot find this package in IDE and android cannot use this packgae based on 'How to use java.nio.file package in android?', but okio still works? How can I do this like okio?
Asked
Active
Viewed 956 times
1
-
1Any Okio methods that use those classes presumably do not work on Android. AFAIK, Okio isn't compiled against an Android SDK, but rather a JDK. – CommonsWare Mar 23 '16 at 17:17
-
so if okio can pass the compile, how can I do that? I've tried this, but it doesn't allow me pass. – machinezhou Mar 23 '16 at 17:25
-
1"so if okio can pass the compile, how can I do that?" -- if that screenshot is from Android Studio, switch to a different IDE, and build a standard Java JAR. – CommonsWare Mar 23 '16 at 17:27
-
you genius, thank you , I'll try your way. – machinezhou Mar 23 '16 at 17:29