Skip to content

Mockk 1.14.4 - Unsupported class file major version 68 #1406

@YMonnier

Description

@YMonnier

Upgrading io.mockk:mockk to 1.14.4 causes the following error on both our CI and local machines:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':commonAndroid:compileDebugUnitTestKotlin'.
> Error while evaluating property 'friendPathsSet$kotlin_gradle_plugin_common' of task ':commonAndroid:compileDebugUnitTestKotlin'.
   > Could not resolve all files for configuration ':commonAndroid:debugUnitTestCompileClasspath'.
      > Failed to transform byte-buddy-1.17.5.jar (net.bytebuddy:byte-buddy:1.17.5) 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/ymonnier/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy/1.17.5/88450f120903b7e72470462cdbd2b75a3842223c/byte-buddy-1.17.5.jar.
            > Jetifier failed to transform: /Users/ymonnier/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy/1.17.5/88450f120903b7e72470462cdbd2b75a3842223c/byte-buddy-1.17.5.jar
              The error was: java.lang.IllegalArgumentException - Unsupported class file major version 68
              To fix this issue, see https://issuetracker.google.com/issues/184622491

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions