No virtual method setOnScrollChangeListener(Landroidx/core/widget/NestedScrollView$OnScrollChangeListener;)V in class NestedScrollView

Viewed 402
java.lang.NoSuchMethodError: No virtual method setOnScrollChangeListener(Landroidx/core/widget/NestedScrollView$OnScrollChangeListener;)V 
in class Landroidx/core/widget/NestedScrollView; or its super classes 
(declaration of 'androidx.core.widget.NestedScrollView' appears in base.apk) at 
... 
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2963)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:518)

I got this error in pre-launch report at the last line below in many versions including 30.

    scrollView = binding.itemDetailScrollView;
    scrollView.setOnScrollChangeListener(
            (androidx.core.widget.NestedScrollView.OnScrollChangeListener) 
    (view, i, i1, i2, i3) -> showHeaderAtEnd());

The fragment/app itself is working fine when installed from appstore testing and it was working fine in the last pre-launch report with this line in place. There are no upgrades to any libraries between these two versions (in fact no change in .gradle except for the version upgrade); This file was also not touched between the releases.

Anyone else getting this eror recently in firebase pre-launch tests?

1 Answers

[As @l33t didn't update here, I am posting the discussion in comments as the answer for future reference.]

It was due to Firebase pre-launch testing system acting up and a resubmission and re-run passed again [of course, with no change in code].

Although we need to blame ourselves before faulting OS, compiler or frameworks, this is one instance where the framework was at issue; See the related issue from @l33t - https://issuetracker.google.com/issues/213617215

Related