NoClassDefFoundError: com/facebook/jni/Countable when load liblib_fb_fbjni.so in Andorid 4.1
See original GitHub issue- I have searched existing issues and this is not a duplicate i think it might be connected to https://github.com/facebook/yoga/issues/354 but i’m not sure
Issues and Steps to Reproduce
- Create new android project.
- Add dependencies to gradle:
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'
- Create simple text component in MainActivity:
@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));
}
- Create custom Application class:
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, false);
}
}
- Run app
Expected Behavior
App should display hello world
Link to Code
Stacktrace: https://pastebin.com/yjSNTe6T
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Android error randomly java.lang.NoClassDefFoundError
It seems to fail after an invocation of a Utility's static method from loadAppSettingsAsync, that happens to be a static method within the...
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
https://github.com/facebook/yoga/commit/76f6a54327837bd1d791528409b9b0704e37bb76 should fix it. I’ll create a new release on friday
@kosiarska I’ve re-opened facebook/yoga#354. Investigating now.