Closed Junaid-Sakib closed 4 years ago
@Junaid-Sakib You have two different versions of libs used across your Gradle config: 0.34.0 and 0.23.0. Please, put the latest version for all the Litho artifacts 0.34.0 and check it out again.
Thanks @colriot that helps! Not sure where I got the mismatching versions from!
Also, if make sure to use either kapt
or annotationProcessor
config for processor deps, depending on whether you use Litho from Kotlin or not. Now you have both in you config
Thanks a lot for pointing that out, much appreciated :)
Version
//Litho implementation 'com.facebook.litho:litho-core:0.34.0' implementation 'com.facebook.litho:litho-widget:0.34.0' kapt 'com.facebook.litho:litho-processor:0.34.0' implementation 'com.facebook.soloader:soloader:0.6.0' implementation 'com.facebook.litho:litho-fresco:0.34.0' testImplementation 'com.facebook.litho:litho-testing:0.34.0' implementation 'com.facebook.litho:litho-sections-core:0.34.0' implementation 'com.facebook.litho:litho-sections-widget:0.23.0' compileOnly 'com.facebook.litho:litho-sections-annotations:0.23.0' annotationProcessor 'com.facebook.litho:litho-sections-processor:0.23.0'
Issues and Steps to Reproduce
Expected Behavior
*Should not crash, the example I followed is at: https://www.codota.com/web/assistant/code/rs/5c7cb4522ef5570001df7644#L34 which comes from a fb class
Link to Code