title: java.lang.NoSuchMethodError: No super method
body: <p>Trying to use <strong>CameraX</strong> in Android.I am using <a href="https://codelabs.developers.google.com/codelabs/camerax-getting-started/#0" rel="nofollow noreferrer">code link </a>.But i am facing Error<br>
      java.lang.NoSuchMethodError: No super method
      getLifecycle()Landroidx/lifecycle/Lifecycle; in class
      Landroidx/core/app/ComponentActivity; or its super classes</p>
  
  <p><a href="https://i.stack.imgur.com/LAjXw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LAjXw.jpg" alt="Error image"></a> </p>