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.

Exception runtime

See original GitHub issue

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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
passycommented, Feb 17, 2019

@marco-cova - @jerboy’s comment seems correct in that case. If annotations are now required at runtime, they need to be marked as implementation.

0reactions
marco-covacommented, Feb 20, 2019

Fixed with ec67371. Thanks for reporting.

Read more comments on GitHub >

github_iconTop 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 >

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