java.lang.AbstractMethodError in release build using Smoothie-lifecycle
See original GitHub issueI’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:
- Created 3 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Change minSdkVersion to 24. You can see the answer here: https://developer.android.com/jetpack/androidx/releases/compose-runtime
See the answer here https://stackoverflow.com/a/60873211/345810