Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

showing NoSuchMethodException on Android P when initialing the SoLoader #197

Open
kaiyan910 opened this issue Jul 3, 2018 · 10 comments
Open

Comments

@kaiyan910
Copy link

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
facebook/fresco#2115 ?

@geekyprateek
Copy link

@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

@bmbariah
Copy link

Same fix as this one? : facebook/SoLoader@3d69139

@roadhouse-dev
Copy link

We are also stuck on this.

yidinghe added a commit to yidinghe/conceal that referenced this issue Jan 18, 2019
showing NoSuchMethodException on Android P when initialing the SoLoader
facebookarchive#197
Reference:
facebook/SoLoader@3d69139
@ysoftware
Copy link

This has to be fixed.

@idish
Copy link

idish commented Feb 2, 2019

This must be fixed ASAP! VERY CRITICAL ISSUE!

@mandrachek
Copy link

mandrachek commented Feb 10, 2019

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]

@kaiyan910
Copy link
Author

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

@mandrachek
Copy link

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

@childnode
Copy link

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

@goemic
Copy link

goemic commented Jan 8, 2020

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?

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

No branches or pull requests

9 participants