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

Unable to integrate Pluto (Build Issue: Moshi Error) #182

Closed
ritesh-karmare opened this issue Sep 27, 2022 · 4 comments
Closed

Unable to integrate Pluto (Build Issue: Moshi Error) #182

ritesh-karmare opened this issue Sep 27, 2022 · 4 comments
Assignees

Comments

@ritesh-karmare
Copy link

ritesh-karmare commented Sep 27, 2022

@srtvprateek

I am integrating Pluto library in my project with Crashes and Exceptions plugins.
When I try to build the project it gives following error:
Record requires ASM8

Android Studio Version: Android Studio Dolphin | 2021.3.1
minSdkVersion: 21
targetSdkVersion: 30

build tool: classpath 'com.android.tools.build:gradle:7.0.3
kotlin plugin: org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20

Pluto Dependency:
debugImplementation 'com.plutolib:pluto:2.0.5'
releaseImplementation 'com.plutolib:pluto-no-op:2.0.5'
debugImplementation 'com.plutolib.plugins:exceptions:2.0.5'
releaseImplementation 'com.plutolib.plugins:exceptions-no-op:2.0.5'

Other Dependencies include: Hilt, Gson, Retrofit, OkHttp

gradle.properties
android.enableJetifier=true
android.useAndroidX=true
android.jetifier.ignorelist=moshi-1.13.0

Stacktrace:

`FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

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

Could not resolve all files for configuration ':app:DevelopmentDebugRuntimeClasspath'.
Failed to transform exceptions-2.0.5.aar (com.plutolib.plugins:exceptions:2.0.5) to match attributes {artifactType=android-dex, asm-transformed-variant=DevelopmentDebug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not resolve all files for configuration ':app:DevelopmentDebugRuntimeClasspath'.
> Failed to transform moshi-1.13.0.jar (com.squareup.moshi:moshi:1.13.0) to match attributes {artifactType=android-asm-instrumented-jars, asm-transformed-variant=DevelopmentDebug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
> Execution failed for AsmClassesTransform: /Users/ritesh/.gradle/caches/modules-2/files-2.1/com.squareup.moshi/moshi/1.13.0/da685586facab9eb5c4fb630ce248be14e7da21b/moshi-1.13.0.jar.
> Record requires ASM8
Failed to transform library-3.5.2.aar (com.github.chuckerteam.chucker:library:3.5.2) to match attributes {artifactType=android-dex, asm-transformed-variant=DevelopmentDebug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not resolve all files for configuration ':app:DevelopmentDebugRuntimeClasspath'.
> Failed to transform moshi-1.13.0.jar (com.squareup.moshi:moshi:1.13.0) to match attributes {artifactType=android-asm-instrumented-jars, asm-transformed-variant=DevelopmentDebug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
> Execution failed for AsmClassesTransform: /Users/ritesh/.gradle/caches/modules-2/files-2.1/com.squareup.moshi/moshi/1.13.0/da685586facab9eb5c4fb630ce248be14e7da21b/moshi-1.13.0.jar.
> Record requires ASM8
Failed to transform moshi-1.13.0.jar (com.squareup.moshi:moshi:1.13.0) to match attributes {artifactType=android-dex, asm-transformed-variant=DevelopmentDebug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
> Execution failed for AsmClassesTransform: /Users/ritesh/.gradle/caches/modules-2/files-2.1/com.squareup.moshi/moshi/1.13.0/da685586facab9eb5c4fb630ce248be14e7da21b/moshi-1.13.0.jar.
> Record requires ASM8

2: Task failed with an exception.

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

Could not resolve all files for configuration ':app:DevelopmentDebugRuntimeClasspath'.
Failed to transform moshi-1.13.0.jar (com.squareup.moshi:moshi:1.13.0) to match attributes {artifactType=android-asm-instrumented-jars, asm-transformed-variant=DevelopmentDebug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
> Execution failed for AsmClassesTransform: /Users/ritesh/.gradle/caches/modules-2/files-2.1/com.squareup.moshi/moshi/1.13.0/da685586facab9eb5c4fb630ce248be14e7da21b/moshi-1.13.0.jar.
> Record requires ASM8
`

@riteshkarmare
Copy link

@srtvprateek Any update?

@srtvprateek srtvprateek self-assigned this Oct 26, 2022
@srtvprateek
Copy link
Member

srtvprateek commented Oct 26, 2022

@ritesh-karmare still looking into this,
not able to reproduce it

Can you try using Moshi without Pluto?

@akshaytandroid
Copy link

Same issue for me when I tried implementing the library.

@akshaytandroid
Copy link

adding android.jetifier.blacklist = com.squareup.moshi to the gradle.properties helped me get rid of this error.

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

4 participants