mpatric / mp3agic

A java library for reading mp3 files and reading / manipulating the ID3 tags (ID3v1 and ID3v2.2 through ID3v2.4).
MIT License
1.2k stars 310 forks source link

cannot access Path class file for java.nio.file.Path not found #141

Open serkandaglioglu opened 7 years ago

serkandaglioglu commented 7 years ago

When I build project it throws error: cannot access Path class file for java.nio.file.Path not found

What should I do?

Ra-Na commented 7 years ago

This is an Android issue.

Just compared FileWrapper.java from releases 0.9.0 and 0.9.1. The latest is invoking the new java.nio.file.* classes, which are not available to android. See here: https://stackoverflow.com/questions/24869323/android-import-java-nio-file-files-cannot-be-resolved

Fix? Just stick to 0.9.0 for now.

whitestarlau commented 6 years ago

And the java.nio.file.Paths added in API level 26.Below this version need use 0.9.0.