Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Objenesis? #705

Closed
pvegh opened this issue Sep 28, 2021 · 5 comments
Closed

Update Objenesis? #705

pvegh opened this issue Sep 28, 2021 · 5 comments

Comments

@pvegh
Copy link

pvegh commented Sep 28, 2021

Lately I'm seeing this in new Android Studios (Arctic Fox and Bumblebee):

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

Could not resolve all files for configuration ':app:localDebugRuntimeClasspath'.
Failed to transform objenesis-3.1.jar (org.objenesis:objenesis:3.1) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=23, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingWithClasspathTransform: /Users/foo/.gradle/caches/transforms-3/1d99eb0761d5454a8d4c29cd536a9bd2/transformed/jetified-objenesis-3.1.jar.
> Error while dexing.

Would updating objenesis dependency to 3.2 help us?

@sgjesse
Copy link

sgjesse commented Sep 28, 2021

Related issue from the Android Studio issue tracker: https://issuetracker.google.com/201206188.

@svenjacobs
Copy link

As mentioned in the Android Studio issue, upgrading objenesis to 3.2 fixes this problem. Hence an upgrade of this dependency is greatly appreciated. Currently I solve this problem with:

configurations.all {
    resolutionStrategy {
        force("org.objenesis:objenesis:3.2")
    }
}

@Raibaz
Copy link
Collaborator

Raibaz commented Apr 15, 2022

Sure thing, upgrading to 3.2 does not seem like a breaking change to me.

Just pushed the upgrade to master.

Thanks for noticing this!

@Raibaz Raibaz closed this as completed Apr 15, 2022
@colintheshots
Copy link

colintheshots commented Apr 26, 2022

Could we please get an updated version posted to include this fix?

@Raibaz
Copy link
Collaborator

Raibaz commented May 3, 2022

Sure thing, I'd like to get #816 merged first and then I'll publish a release straight away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants