Iam using lucene in android.i could not import java.nio.file.Path package
import java.nio.file.Path;//this is not resolved in android studio
 //Creating an   internal dir;
 File mydir = this.getDir("my_dir", Context.MODE_PRIVATE); 
        if(!mydir.exists())
        {
            mydir.mkdirs();
        }
        Path dirPath = mydir.toPath();
        Directory indexDir = FSDirectory.open(mydir);
Iam using lucene 5.2.1 For FSDirectory.open() parameter to be passed is of type Path...so how can i get path object of the directory mydir that i have created