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

报No static method loadLibrary错误 #4

Closed
klgd opened this issue Jul 12, 2019 · 4 comments
Closed

报No static method loadLibrary错误 #4

klgd opened this issue Jul 12, 2019 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@klgd
Copy link

klgd commented Jul 12, 2019

编译运行时直接报错:

java.lang.NoSuchMethodError: No static method loadLibrary(Ljava/lang/String;)V in class Lcom/facebook/soloader/SoLoader; or its super classes (declaration of 'com.facebook.soloader.SoLoader' appears in /data/app/com.tarodemo-61beqQ6pvhXVeuMkNVDhdg==/split_lib_dependencies_apk.apk)
        at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:18)
        at com.facebook.react.bridge.NativeMap.<clinit>(NativeMap.java:19)
        at com.facebook.react.bridge.JSCJavaScriptExecutorFactory.create(JSCJavaScriptExecutorFactory.java:21)
        at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:912)
        at java.lang.Thread.run(Thread.java:764)

网上找的解决办法

implementation 'com.facebook.fresco:fresco:1.9.0'
implementation 'com.facebook.fresco:animated-gif:1.9.0'
// IN CASE YOU NEED WEBP SUPPORT / MAKE SURE TO CHANGE THIS TOO TO 1.9.0
implementation 'com.facebook.fresco:animated-webp:1.9.0'
implementation 'com.facebook.fresco:webpsupport:1.9.0'

试了,无效

@LeonaYoung
Copy link

same issues

@LeonaYoung
Copy link

taro-native-shell/node_modules/expo-image-picker/android/build.gradle

77:  api 'com.facebook.fresco:fresco:1.10.0' 

改为 1.9.0 即可!@klgd

@Pines-Cheng
Copy link

Pines-Cheng commented Jul 23, 2019

RN 0.55.4 下 expo-image-picker 的问题,已经提了 issue,但是貌似他们不打算过多考虑 RN 低版本,所以先手动改吧。expo/expo#4990

@klgd
Copy link
Author

klgd commented Jul 24, 2019

ok

@klgd klgd closed this as completed Jul 24, 2019
@Pines-Cheng Pines-Cheng pinned this issue Aug 1, 2019
@Pines-Cheng Pines-Cheng added the bug Something isn't working label Oct 17, 2019
@Pines-Cheng Pines-Cheng self-assigned this Oct 17, 2019
@zhiqingchen zhiqingchen unpinned this issue Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants