Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError: com/facebook/jni/Countable when load liblib_fb_fbjni.so in Andorid 4.1 #108

Closed
1 task done
kosiarska opened this issue Apr 20, 2017 · 7 comments
Closed
1 task done
Labels

Comments

@kosiarska
Copy link

kosiarska commented Apr 20, 2017

Issues and Steps to Reproduce

  1. Create new android project.
  2. 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'
  1. 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));
}
  1. Create custom Application class:
public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        SoLoader.init(this, false);
    }
}
  1. Run app

Expected Behavior

App should display hello world

Link to Code

Stacktrace: https://pastebin.com/yjSNTe6T

@passy
Copy link
Member

passy commented Apr 20, 2017

@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.

@songjian931798
Copy link

I met this issue!!!

@kebbbnnn
Copy link

encountered this issue too on my android 4.2.2 device

@emilsjolander
Copy link
Contributor

@kosiarska I've re-opened facebook/yoga#354. Investigating now.

@emilsjolander
Copy link
Contributor

facebook/yoga@76f6a54 should fix it. I'll create a new release on friday

@passy
Copy link
Member

passy commented Jul 27, 2017

Haven't seen this since. Closing.

@passy passy closed this as completed Jul 27, 2017
@wangbax
Copy link

wangbax commented Jul 20, 2018

@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?

fbjni in litho
fbjni in yoga

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants