You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2021/09/03 12:29:00 UTC
[jira] [Comment Edited] (COMPRESS-590) Fatal Exception:
java.lang.NoSuchMethodError
[ https://issues.apache.org/jira/browse/COMPRESS-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17409477#comment-17409477 ]
Gary D. Gregory edited comment on COMPRESS-590 at 9/3/21, 12:28 PM:
--------------------------------------------------------------------
The bottom line here is that Java on Android is not the complete Java that you find everywhere else :(
But, the API you refer to is listed here https://developer.android.com/reference/java/io/File so maybe you just need to up your Android API version.
was (Author: garydgregory):
The bottom line here is that Java on Android is not the complete Java that you find everywhere else :-(
> Fatal Exception: java.lang.NoSuchMethodError
> --------------------------------------------
>
> Key: COMPRESS-590
> URL: https://issues.apache.org/jira/browse/COMPRESS-590
> Project: Commons Compress
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.21
> Reporter: Philip Jan Baruis
> Priority: Major
>
> Environment: Android Studio
> JDK Version: 1.8
> Apache Commons Compress Version: 1.21
> Android Versions affected: Android 6 (Marshmallow) / API 23 , Android 7.1 (Nougat) / API 25
> Here's what i got on the stacktrace.
> {code:java}
> Fatal 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-libart.jar)
> at org.apache.commons.compress.archivers.tar.TarArchiveEntry.<init>(TarArchiveEntry.java:421){code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)