Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for devices with API <26 using read methods #46

Closed
nicolaa5 opened this issue Sep 2, 2020 · 1 comment
Closed

Support for devices with API <26 using read methods #46

nicolaa5 opened this issue Sep 2, 2020 · 1 comment

Comments

@nicolaa5
Copy link

nicolaa5 commented Sep 2, 2020

When using the following methods:
read(final File file, final Charset charset) at CsvReader.java:107
read(final Path path, final Charset charset) at CsvReader.java:122

devices < API 26 receive this exception:

java.lang.NoSuchMethodError: No virtual method toPath()Ljava/nio/file/Path; in class Ljava/io/File; or its super classes (declaration of 'java.io.File' appears in /system/framework/core-oj.jar) at de.siegmar.fastcsv.reader.CsvReader.read(CsvReader.java:109)

Most likely because of some methods in the java.nio package are not available for API <26
Call requires API level 26 (current min is 19): java.nio.file.Paths#get

Suggestion would be to add a minimum API requirement for these methods or to read the file in a different way internally if the API is <26

@osiegmar
Copy link
Owner

osiegmar commented Sep 2, 2020

This library does not support Android explicitly – see #3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants