compile 'com.facebook.litho:litho-core:0.2.0'
compile 'com.facebook.litho:litho-widget:0.2.0'
provided 'com.facebook.litho:litho-annotations:0.2.0'
annotationProcessor 'com.facebook.litho:litho-processor:0.2.0'
// SoLoader
compile 'com.facebook.soloader:soloader:0.2.0'
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final ComponentContext context = new ComponentContext(this);
final Component component = Text.create(context)
.text("Hello World")
.textSizeDip(50)
.build();
setContentView(LithoView.create(context, component));
}
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, false);
}
}
App should display hello world
Stacktrace: https://pastebin.com/yjSNTe6T
@kosiarska Yes, that's definitely the same issue as facebook/yoga#354. It's probably best to follow the progress over there as we can't do anything about it on the Litho side.
Thanks for the report! I'll leave it to @emilsjolander if he wants to keep both issues open.
I met this issue!!!
encountered this issue too on my android 4.2.2 device
@kosiarska I've re-opened facebook/yoga#354. Investigating now.
https://github.com/facebook/yoga/commit/76f6a54327837bd1d791528409b9b0704e37bb76 should fix it. I'll create a new release on friday
Haven't seen this since. Closing.
@emilsjolander Excuse me. I got same problem in 0.17.0 and crash on android 4.1.1 device every time. the facebook/yoga@76f6a54 fix has't merged to litho?
Most helpful comment
https://github.com/facebook/yoga/commit/76f6a54327837bd1d791528409b9b0704e37bb76 should fix it. I'll create a new release on friday