conceal icon indicating copy to clipboard operation
conceal copied to clipboard

showing NoSuchMethodException on Android P when initialing the SoLoader

Open kaiyan910 opened this issue 6 years ago • 10 comments

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:297)
at com.facebook.soloader.SoLoader.initSoLoader(SoLoader.java:249)
at com.facebook.soloader.SoLoader.initImpl(SoLoader.java:156)
at com.facebook.soloader.SoLoader.init(SoLoader.java:131)
at com.facebook.soloader.SoLoader.init(SoLoader.java:115)
at com.facebook.soloader.SoLoader.init(SoLoader.java:142)

I think it is the same issue as https://github.com/facebook/fresco/issues/2115 ?

kaiyan910 avatar Jul 03 '18 05:07 kaiyan910

@siyengar is there any plan to update the library for the same issue, we are using the lib heavily and now we are stuck on this. TIA

geekyprateek avatar Aug 18 '18 14:08 geekyprateek

Same fix as this one? : https://github.com/facebook/SoLoader/commit/3d691395dd353d7ebf633db445bcc7460232aa7a

bmbariah avatar Nov 15 '18 11:11 bmbariah

We are also stuck on this.

roadhouse-dev avatar Jan 07 '19 04:01 roadhouse-dev

This has to be fixed.

ysoftware avatar Feb 01 '19 10:02 ysoftware

This must be fixed ASAP! VERY CRITICAL ISSUE!

idish avatar Feb 02 '19 22:02 idish

I thought we might be able to work around this issue by overriding the version of SoLoader conceal uses by specifying the 0.6.0 version (or presumably later), e.g.

    implementation 'com.facebook.conceal:conceal:2.0.2@aar'
    implementation 'com.facebook.soloader:soloader:0.6.0'

But it doesn't work: Error: Program type already present: com.facebook.soloader.[SomeClass]

mandrachek avatar Feb 10 '19 18:02 mandrachek

it won't work as conceal's soloader is packed inside the library, not from gradle dependency.

kaiyan910 avatar Feb 14 '19 10:02 kaiyan910

Yeah, figured that out. Can't stand buck. I'm dropping this lib like a hot potato. It's pretty much abandoned.

mandrachek avatar Feb 19 '19 17:02 mandrachek

is this s.th. that caused #186 ?!

childnode avatar Feb 22 '19 10:02 childnode

Is this bug simply ignored??

I really would like to integrate this library but I'm scared to use it in production since nobody seems to care about this bug or even takes a look at the pull request.

Does anyone have a custom build of conceal where the source set is replaced by the corresponding gradle depency for soloader?

goemic avatar Jan 08 '20 13:01 goemic