解决使用网易云信sdk打release包后点击崩溃问题

1. 异常详情
java.lang.NoSuchMethodError: No virtual method F(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject; in class Lorg/json/JSONObject; or its super classes (declaration of 'org.json.JSONObject' appears in /apex/com.android.art/javalib/core-libart.jar)
    at com.reyun.tracking.a.g.a(Unknown Source:7)
    at com.reyun.tracking.sdk.Tracking.setEvent(Unknown Source:152)
    at com.reyun.tracking.sdk.Tracking.setEvent(Unknown Source:1)
    ...
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1193)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7265)
    at android.app.ActivityThread.access$1600(ActivityThread.java:293)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2151)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:263)
    at android.app.ActivityThread.main(ActivityThread.java:8283)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)
2. 解决方案

将 uikit 中的 java-json.jar 去掉即可

image.png
  • 究极解决方案

永远别用网易云信 sdk, 这是阳寿 sdk, 一堆坑,

你可能感兴趣的:(解决使用网易云信sdk打release包后点击崩溃问题)