Skip to content

3.3.0 is binary-incompatible with 3.2.0 #466

@autonomousapps

Description

@autonomousapps

✍️ Describe the bug

I have a project that uses Chucker, which also uses a library that uses Chucker. The library is still using 3.2.0, and when I updated my app to 3.3.0 and ran it, it crashed at runtime with this error:

java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/Context;Lcom/chuckerteam/chucker/api/ChuckerCollector;JLjava/util/Set;ILkotlin/jvm/internal/DefaultConstructorMarker;)V in class Lcom/chuckerteam/chucker/api/ChuckerInterceptor; or its super classes (declaration of 'com.chuckerteam.chucker.api.ChuckerInterceptor' appears in /data/app/~~GJiF7AJl427rbyfaLOyo1A==/com.myproject-GIw2-OO7zIRGQFD6KsWDQg==/base.apk)

According to @cortinico,

Seems like the ChuckerInterceptor(Context, ChuckerCollector, Set) is missing.

💣 Steps to reproduce

  1. Have a library with Chucker 3.2.0.
  2. Have an app with Chucker 3.3.0, and which uses the above library.
  3. Launch app.
  4. Observe crash.

🔧 Expected behavior

App should not crash.

📄 Additional context

Adding the missing constructor will make it easier to migrate to Chucker 3.3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions