I am trying to use Java NIO's Zip File System on Android (API Level 30). I basically tried to implement the example found here.
The result is a java.nio.file.ProviderNotFoundException: Provider "jar" not found
.
I know that it's possible that Android just does not offer this file system provider. Six years ago someone tried the same and failed because java.nio.file.Path
was not a part of Android's implementation (which it now is!).
But since I did not find a definite answer during my research I still wonder whether I did something wrong. I tried comparing the Oracle docs to the Android docs but did not find anything suspicious which is missing on Android.
Is it possible to use Java NIO's Zip File System on Android? Or do we have keep using the old school way?