引入
implementation 'cn.leancloud:storage-android:8.2.12'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
报错信息
java.lang.NoSuchMethodError: No direct method (Ljava/util/Map;)V in class Lcom/google/gson/internal/ConstructorConstructor; or its super classes (declaration of 'com.google.gson.internal.ConstructorConstructor' appears in /data/app/~~dAyoiTTl6KTdyN1yMUegvg==/com.example.yinxinproject-CSyEJbrN6y3gggulH3k9Jg==/base.apk!classes13.dex)
at cn.leancloud.gson.GeneralObjectAdapter.(GeneralObjectAdapter.java:20)
at cn.leancloud.gson.GsonWrapper.(GsonWrapper.java:60)
at cn.leancloud.gson.GsonWrapper.getGsonInstance(GsonWrapper.java:73)
at cn.leancloud.gson.GSONConverterFactory.generateRetrofitConverterFactory(GSONConverterFactory.java:9)
at cn.leancloud.core.AppConfiguration.(AppConfiguration.java:45)
at cn.leancloud.core.AppConfiguration.getRetrofitConverterFactory(AppConfiguration.java:100)
at cn.leancloud.core.AppRouter.(AppRouter.java:107)
at cn.leancloud.core.AppRouter.getInstance(AppRouter.java:37)
at cn.leancloud.core.LeanCloud.setServer(LeanCloud.java:104)
at cn.leancloud.core.LeanCloud.setServerURLs(LeanCloud.java:114)
at cn.leancloud.LeanCloud.initialize(LeanCloud.java:118)
at com.example.yinxinproject.app.MyApplivation.onCreate(MyApplivation.java:79)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1226)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7036)
at android.app.ActivityThread.access$1800(ActivityThread.java:253)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2183)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:344)
at android.app.ActivityThread.main(ActivityThread.java:8191)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
有大神知道怎么解决吗