You're trying to use java.nio.file.Paths
, which doesn't exist in Android as far as I can see. (Only some parts of the Java 7 API are supported.)
It's not clear what path you're looking for, or what you're going to do with the result, but consider using File
.
Edit, now that we know a bit more: You should not put your desktop JRE jar files in the classpath for an Android project. That's just asking for trouble. Without doing that, you'd have correctly got a compile-time error.