facebookarchive / conceal

Conceal provides easy Android APIs for performing fast encryption and authentication of data.
http://facebook.github.io/conceal/
Other
2.96k stars 431 forks source link

showing NoSuchMethodException on Android P when initialing the SoLoader #197

Open kaiyan910 opened 6 years ago

kaiyan910 commented 6 years ago
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 ?

geekyprateek commented 6 years ago

@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 commented 5 years ago

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

roadhouse-dev commented 5 years ago

We are also stuck on this.

ysoftware commented 5 years ago

This has to be fixed.

idish commented 5 years ago

This must be fixed ASAP! VERY CRITICAL ISSUE!

mandrachek commented 5 years ago

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 commented 5 years ago

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

mandrachek commented 5 years ago

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

childnode commented 5 years ago

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

goemic commented 4 years ago

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?