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

SoLoader initialize error with Android P #2280

Closed
liusgh opened this issue Jan 25, 2019 · 3 comments
Closed

SoLoader initialize error with Android P #2280

liusgh opened this issue Jan 25, 2019 · 3 comments

Comments

@liusgh
Copy link

liusgh commented Jan 25, 2019

W/SoLoader: Cannot get nativeLoad method
java.lang.NoSuchMethodException: nativeLoad [class java.lang.String, class java.lang.ClassLoader, class java.lang.String]
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getDeclaredMethod(Class.java:2047)
at com.facebook.soloader.SoLoader.getNativeLoadRuntimeMethod(SoLoader.java:281)
at com.facebook.soloader.SoLoader.initSoLoader(SoLoader.java:233)
at com.facebook.soloader.SoLoader.initImpl(SoLoader.java:141)
at com.facebook.soloader.SoLoader.init(SoLoader.java:120)
at com.facebook.soloader.SoLoader.init(SoLoader.java:104)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:63)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:46)
@zmroczek You have fixed the problem, but I have some questions.I really need some help!!!
Under what circumstances do I need to update the version of this soLoader? We only used Fresco to load dynamic webp, and we haven't found any problems with this issue except for the warning message. So do we have to update the version of soLoader in Android P?
Many thanks.

@zmroczek
Copy link
Contributor

Hi @liusgh

Are you using the latest Fresco version (1.11.0) that has this bug fixed as mentioned in #2115 ?

@liusgh
Copy link
Author

liusgh commented Jan 28, 2019

@zmroczek
In fact, we only rely on a submodule, animated-webp (1.9.0), rather than relying directly on the entire Fresco. The version of the so-loader that the latest animated-webp (1.9.0) depends on is 0.3.0. Because we only use Fresco to load dynamic Webp. So this error stack will affect our current usage scenarios? Do we need to upgrade the dependency on animated-webp or so-loader?

@zmroczek
Copy link
Contributor

Yes, this has been fixed in SoLoader version 0.5.0.

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

2 participants