Exception runtime
See original GitHub issue- I have searched existing issues and this is not a duplicate
Version
***Add the version of the litho packages you use. You can paste the dependency
dependencies {
// ...
// Litho
implementation 'com.facebook.litho:litho-core:0.23.0'
implementation 'com.facebook.litho:litho-widget:0.23.0'
compileOnly 'com.facebook.litho:litho-annotations:0.23.0'
annotationProcessor 'com.facebook.litho:litho-processor:0.23.0'
// SoLoader
implementation 'com.facebook.soloader:soloader:0.5.1'
// For integration with Fresco
implementation 'com.facebook.litho:litho-fresco:0.23.0'
// For testing
testImplementation 'com.facebook.litho:litho-testing:0.23.0'
}
Issues and Steps to Reproduce
Runtime Exception
02-01 15:50:45.903 15915 15915 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/litho/annotations/Comparable;
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.ComponentUtils.hasEquivalentFields(SourceFile:47)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.Component.isEquivalentTo(SourceFile:174)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.common.SingleComponentSection.isEquivalentTo(SourceFile:94)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.SectionLifecycle.shouldUpdate(SourceFile:186)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.SectionLifecycle.shouldComponentUpdate(SourceFile:160)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.ChangeSetState.generateChangeSetRecursive(SourceFile:202)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.ChangeSetState.generateChildrenChangeSets(SourceFile:413)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.ChangeSetState.generateChangeSetRecursive(SourceFile:303)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.ChangeSetState.generateChangeSet(SourceFile:116)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.SectionTree.calculateNewChangeSet(SourceFile:1404)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.SectionTree.applyNewChangeSet(SourceFile:984)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.SectionTree.access$100(SourceFile:76)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.sections.SectionTree$CalculateChangeSetRunnable.tracedRun(SourceFile:221)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.facebook.litho.ThreadTracingRunnable.run(SourceFile:89)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6680)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
02-01 15:50:45.903 15915 15915 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
RuntimeException (Java Platform SE 7 ) - Oracle Help Center
RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine.
Read more >Difference between java.lang.RuntimeException and java ...
Runtime exceptions represent problems that are the result of a programming problem, and as such, the API client code cannot reasonably be expected...
Read more >Fix these 10 common examples of the RuntimeException in Java
List of RuntimeException examples · ArithmeticException · NullPointerException · ClassCastException · DateTimeException ...
Read more >Java Program to Handle Runtime Exceptions - GeeksforGeeks
RuntimeException is the superclass of all classes that exceptions are thrown during the normal operation of the Java VM (Virtual Machine).
Read more >RuntimeException (Java Platform SE 6) - SciJava Javadoc
RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine.
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
@marco-cova - @jerboy’s comment seems correct in that case. If annotations are now required at runtime, they need to be marked as
implementation
.Fixed with ec67371. Thanks for reporting.