question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.AbstractMethodError in release build using Smoothie-lifecycle

See original GitHub issue

I’m using Kotlin (1.3.72), Smoothie-lifecycle (3.1.0), and AndroidX lifecycle (2.2.0) for a fairly small project. After switching build variant to the “release” I encountered exception:

java.lang.AbstractMethodError: abstract method “void androidx.lifecycle.DefaultLifecycleObserver.onCreate(androidx.lifecycle.LifecycleOwner)”

After a quick search, I found only one case of implementing DefaultLifecycleObserver interface - toothpick.smoothie.lifecycle.LifecycleUtil.closeOnDestroy(LifecycleOwner, Scope). After implementing missing methods of DefaultLifecycleObserver with empty bodies the issue was resolved.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

8reactions
NguyenKhue09commented, Jul 30, 2021

Change minSdkVersion to 24. You can see the answer here: https://developer.android.com/jetpack/androidx/releases/compose-runtime

0reactions
tim4devcommented, Apr 28, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

how to fix java.lang.AbstractMethodError: abstract method not ...
In my case in release build I got a message like "java.lang.AbstractMethodError: ... A library used is compiled using the provided method.
Read more >
Using Default Method Raises Abstractmethorerror In Android ...
java.lang.AbstractMethodError in release build using Smoothielifecycle. I'm using Kotlin 1.3.72 Smoothielifecycle 3.1.0 and AndroidX lifecycle.
Read more >
AbstractMethodError in Java - Baeldung
AbstractMethodError is thrown when an application attempts to call an unimplemented abstract method. We know that if there are unimplemented ...
Read more >
AbstractMethodError (Java Platform SE 8 ) - Oracle Help Center
Constructs an AbstractMethodError with the specified detail message. Method Summary. Methods inherited from class java.lang.Throwable · addSuppressed, ...
Read more >
java.lang.AbstractMethodError: org.apache.activemq ...
When using JMS 2.0 and Delivery delay option JMS connector fails to connect with Active MQ.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found