Skip to content

UnsatisfiedLinkError when using ValueAnimator #988

@Thanasis17m

Description

@Thanasis17m

Description
We have a project with multiple modules. In some of them, there are viewModel classes, in which we use the android.animation.ValueAnimator class to create and handle a timer.

When we add to one of these modules, the paparazzi dependency, then the unit tests that test any viewModel method using the ValueAnimator class fail.

This UnsatisfiedLinkError is reported:

Screenshot 2023-07-11 at 10 36 08 AM

More specifically, the error is reported in the viewModel, when we call this method ValueAnimator.ofInt(PROGRESS_MIN, PROGRESS_MAX)

We also tried adding the paparazzi dependency to other modules, where we use ValueAnimator similarly in viewModels and the same error was reported in the relevant unit tests.

So, for some reason, when adding paparazzi dependency to a module, then all unit tests that use ValueAnimator in the tested method, fail.

Steps to Reproduce
To reproduce this, just follow the above steps.

  1. Add paparazzi dependency in your module.
  2. Create a class with a method calling any ValueAnimator method.
  3. Create a unit test, calling the method and run it.
  4. You should see the UnsatisfiedLinkError

Expected behavior
What we expected was, that adding the paparazzi dependency, wouldn't affect the use of the ValueAnimator class.

Additional information:

  • Paparazzi Version: 1.3.0
  • OS: MAC OS (M1)
  • Compile SDK: 33
  • Gradle Version: 8.2
  • Android Gradle Plugin Version: 8.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions