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

0.5.0 has problem No static method loadLibrary(Ljava/lang/String;)V in class Lcom/facebook/soloader/SoLoader; #10

Closed
gengjiawen opened this issue Jun 15, 2018 · 8 comments

Comments

@gengjiawen
Copy link
Contributor

Reproduce code: facebook/react-native#19724 (comment).
0.3.0 works fine.

@passy
Copy link
Member

passy commented Jun 15, 2018

I'm not seeing how to repro it there? We're using 0.5.0 in litho with the same call and aren't seeing this.

Could you elaborate on the repro steps?

@gengjiawen
Copy link
Contributor Author

gengjiawen commented Jun 15, 2018

@passy

   project.configurations.all {
       resolutionStrategy.eachDependency { details ->
           if (details.requested.group == 'com.facebook.soloader') {
               details.useVersion "0.3.0"
           }
       }
   }
  • install RNTester app by ./gradlew :RNTester:android:app:installDebug
  • Launch the app, it will crash.

@gengjiawen
Copy link
Contributor Author

Release won't build due to this too if you try ./gradlew :RNTester:android:app:installRelease

@gengjiawen
Copy link
Contributor Author

It works on windows, maybe something wrong with macOS.

@gengjiawen
Copy link
Contributor Author

After restart macOS, the problem is gone ...

@gengjiawen
Copy link
Contributor Author

During the build, I do try the ./gradlew clean multi times, but the problem still exists. So if anyone run into something similar, maybe consider restart your macOS.

@gengjiawen
Copy link
Contributor Author

gengjiawen commented Jul 21, 2018

This issue occurred in 0.5.1, see full log: https://circleci.com/gh/gengjiawen/react-native/676?utm_campaign=build-failed&utm_medium=email&utm_source=notification.

Warning: com.facebook.imagepipeline.nativecode.ImagePipelineNativeLoader: can't find referenced method 'void loadLibrary(java.lang.String)' in program class com.facebook.soloader.SoLoader

@gengjiawen
Copy link
Contributor Author

@passy

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

No branches or pull requests

3 participants
@passy @gengjiawen and others