AndroidLibrary: java.lang.NoClassDefFoundError: Could not initialize class components.Stark

Just cloning this repo and building the project, we get this error:

java.lang.NoClassDefFoundError: Could not initialize class components.Stark

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (11 by maintainers)

Most upvoted comments

Hi @jiriklobasa

Does this error only happen when stringFiles property is defined?

Are you getting any other error like this one?

Caused by: java.lang.UnsatisfiedLinkError: /private/var/folders/_t/ppptr4fs06gg1f38_bctzh3m0000gn/T/libsignKey.dylib5689898627273585595: dlopen(/private/var/folders/_t/ppptr4fs06gg1f38_bctzh3m0000gn/T/libsignKey.dylib5689898627273585595, 1): Symbol not found: __ZN5boost6system6detail24system_category_instanceE
  Referenced from: /private/var/folders/_t/ppptr4fs06gg1f38_bctzh3m0000gn/T/libsignKey.dylib5689898627273585595
  Expected in: /usr/local/opt/boost/lib/libboost_system.dylib
 in /private/var/folders/_t/ppptr4fs06gg1f38_bctzh3m0000gn/T/libsignKey.dylib5689898627273585595

@MostafaAnter you are right. I’ve created a native C++ project and added SC. It returns the java.lang.UnsatisfiedLinkError error at runtime.

SC uses the default name for the native library (native-lib) and your native library overrides it.

I’ve just released v3.6.2 with a different native library name.

Thank you so much @MostafaAnter for your report 🙌


@jiriklobasa @klozMobile @ilyasdirin do you have a similar project case?