Code Monkey home page Code Monkey logo

Comments (3)

po1xiao avatar po1xiao commented on May 25, 2024

可以的兄弟,我正在编写这呢,发着这个问题被你提了,我再补充一下:

  • 复现步骤:升级gson为com.google.code.gson:gson:2.9.0版本,调用GsonFactory.newGsonBuilder()方法
    报如下错误:
    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/com.jncustoms.bstraining-TB5rPgAHprS2gs7mmKCfpA==/base.apk!classes3.dex)
    at com.hjq.gson.factory.GsonFactory.newGsonBuilder(GsonFactory.java:100)
    at com.jncustoms.common.utils.GsonUtils.(GsonUtils.kt:11)
    at com.jncustoms.common.utils.Utils$getPgyerVersion$1.onResponse(Utils.kt:824)
    at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    at java.lang.Thread.run(Thread.java:764)

  • 是否必现:是

  • 手机信息:魅族X8 / Android 8.1.0

from gsonfactory.

getActivity avatar getActivity commented on May 25, 2024

小伙子,问题已经修复了,更新到 6.0 版本即可。

from gsonfactory.

Key-CN avatar Key-CN commented on May 25, 2024

这效率极致了!!!

from gsonfactory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.