evm-abi-decoder icon indicating copy to clipboard operation
evm-abi-decoder copied to clipboard

not works

Open ronaldoguedess opened this issue 2 years ago • 6 comments

FAILURE: Build completed with 3 failures.

1: Task failed with an exception.

  • What went wrong: Execution failed for task ':app:mergeDebugNativeLibs'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Failed to transform jackson-core-2.16.1.jar (com.fasterxml.jackson.core:jackson-core:2.16.1) to match attributes {artifactType=android-jni, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. > Execution failed for JetifyTransform: C:\Users\ronaldo.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.16.1\9456bb3cdd0f79f91a5f730a1b1bb041a380c91f\jackson-core-2.16.1.jar. > Failed to transform 'C:\Users\ronaldo.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.16.1\9456bb3cdd0f79f91a5f730a1b1bb041a380c91f\jackson-core-2.16.1.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 65. (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).

ronaldoguedess avatar Feb 28 '24 11:02 ronaldoguedess

Are you sure you're reporting this in the right repo? I don't see anything related to this lib in your error output.

rvullriede avatar Feb 28 '24 19:02 rvullriede

yeah, i'm reporting because i can't use, haha when import lib shows this error!

ronaldoguedess avatar Feb 29 '24 04:02 ronaldoguedess

I haven't developed for Android in ages but it seems it's a simply JDK incompatibility. Can you try this branch: https://github.com/osslabz/evm-abi-decoder/tree/feature/android-compatibility ?

rvullriede avatar Feb 29 '24 19:02 rvullriede

Don't you have to update the version of this lib for me update?

ronaldoguedess avatar Mar 01 '24 01:03 ronaldoguedess

I rather prefer you validate first that the branch fixes the issue before I build a new release. You simply need to check out out and install locally (maven clean install) and have you local maven repository listed in you gradle file.

rvullriede avatar Mar 01 '24 08:03 rvullriede

Sorry, I really don't know how to install it locally.

I just set it on gladle:app file: implementation "net.osslabz:evm-abi-decoder:0.0.10"

And my build gladle is like this:

buildscript {
    repositories {
        google()
        mavenCentral()
        mavenLocal()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:8.1.4")  
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10") 

        classpath "com.google.dagger:hilt-android-gradle-plugin:2.42"
        classpath "com.google.gms:google-services:4.4.1"
        classpath "com.google.firebase:firebase-crashlytics-gradle:2.9.9"
    }
}

how can i procced?

ronaldoguedess avatar Mar 01 '24 15:03 ronaldoguedess

Please try again with 0.0.11 (available on maven central soon). If it still doesn't work, feel free to reopen again!

rvullriede avatar Jun 21 '24 08:06 rvullriede