ConnectSDK / Connect-SDK-Android

Android source project for Connect SDK
Apache License 2.0
308 stars 129 forks source link

java.lang.NoSuchMethodError: No static method #386

Open RGdevz opened 3 years ago

RGdevz commented 3 years ago

I get this error and some devices

Error: java.lang.NoSuchMethodError: No static method $default$putIfAbsent(Ljava/util/concurrent/ConcurrentMap;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; in class Lj$/util/concurrent/ConcurrentMap$-CC; or its super classes (declaration of 'j$.util.concurrent.ConcurrentMap$-CC' appears in base.apk!classes2.dex) at d.a.g.a.putIfAbsent(Unknown Source:0) at d.a.g.a.d(DNSCache.java:2) at d.a.g.l.E0(JmDNSImpl.java:26) at d.a.g.l.F0(JmDNSImpl.java:3) at d.a.g.r.run(SocketListener.java:15)

(sorry for the obfuscation that what I get)

the android version is vary from android 11 to android 9 from what I seen so its not like they are old devices and the manufactures are also not seems to point to specific one.

I don't know how to reproduce that

Edit: Someone opened the issue in their git https://github.com/jmdns/jmdns/issues/205

guess this can be fixed with updated JmDNS version