Closed
Description
com.google.api.client.util.store.FileDataStoreFactory.setPermissionsToOwnerOnly
uses PosixFilePermission
This class was added only in Android API 26. Running on lower API devices results in:
Fatal Exception: java.lang.NoClassDefFoundError
Failed resolution of: Ljava/nio/file/attribute/PosixFilePermission;
com.google.api.client.util.store.FileDataStoreFactory.setPermissionsToOwnerOnly
Crash happens when trying to store OAuth credentials and doing something trivial like
new FileDataStoreFactory(filesDir)
Maybe since the package releases as "Android-compatible" this should be documented?