dropbox / dropbox-sdk-java

A Java library for the Dropbox Core API.
https://www.dropbox.com/developers/documentation/java
MIT License
593 stars 450 forks source link

Unsupported class file major version 63 #517

Closed vfishv closed 11 months ago

vfishv commented 11 months ago

Unsupported class file major version 63

SDK 6.0.0

Android

gradle 8.2.0

greg-db commented 11 months ago

We'll be happy to help with any issues you're having with the Dropbox API/SDK, but we'll need some more information. Please reply with:

vfishv commented 11 months ago

I think it is the same as https://github.com/dropbox/dropbox-sdk-java/issues/511

greg-db commented 11 months ago

Ok, I'll ask the team to look into this.

greg-db commented 11 months ago

@vfishv The team is asking for the full stack trace you're getting for this issue. Can you please share that? Thanks in advance!

vfishv commented 11 months ago

` cution failed for task ':app:kspSmokeDebugKotlin'.

Could not resolve all files for configuration ':app:smokeDebugCompileClasspath'. Failed to transform jackson-core-2.15.0.jar (com.fasterxml.jackson.core:jackson-core:2.15.0) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}. Execution failed for JetifyTransform: /Users/q/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.15.0/12f334a1dc9c6d2854c43ae314024dde8b3ad572/jackson-core-2.15.0.jar. Failed to transform '/Users/q/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.15.0/12f334a1dc9c6d2854c43ae314024dde8b3ad572/jackson-core-2.15.0.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 63. (Run with --stacktrace for more details.) Suggestions:

  • Check out existing issues at https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc, it's possible that this issue has already been filed there.
  • If this issue has not been filed, please report it at https://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible). Failed to transform fastdoubleparser-0.8.0.jar (ch.randelshofer:fastdoubleparser:0.8.0) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}. Execution failed for JetifyTransform: /Users/q/.gradle/caches/modules-2/files-2.1/ch.randelshofer/fastdoubleparser/0.8.0/85c25540369921659556ead85e02c99ef0d24280/fastdoubleparser-0.8.0.jar. Failed to transform '/Users/q/.gradle/caches/modules-2/files-2.1/ch.randelshofer/fastdoubleparser/0.8.0/85c25540369921659556ead85e02c99ef0d24280/fastdoubleparser-0.8.0.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 63. (Run with --stacktrace for more details.) Suggestions:
  • Check out existing issues at https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc, it's possible that this issue has already been filed there.
  • If this issue has not been filed, please report it at https://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible).

`

Oh, i fix it. add

android.jetifier.ignorelist = jackson-core,fastdoubleparser

to gradle.properties

vfishv commented 11 months ago

JDK Jackson-core package baseline JDK requirement:

Versions 2.0 - 2.13 require JDK 6 Versions 2.14 and above require JDK 8 Android List is incomplete due to recent addition of compatibility checker.

2.13: Android SDK 19+ 2.14 and above: Android SDK 26+

pramodkr123 commented 10 months ago

Not working in my case after putting this in gradle.properties android.jetifier.ignorelist = jackson-core,fastdoubleparser

greg-db commented 10 months ago

@pramodkr123 If you're still seeing an issue like this with the SDK, please open a new issue with the full details of the problem you're seeing.