使用Retrofit2.9.0请求时报的错java.lang.NoSuchMethodError: No static method get(Ljava/lang/String;)Lokhttp3/H

2021-03-08 02:30

阅读:536

标签:highlight   its   imei   apk   oncreate   pre   oda   com   url   

2020-12-30 02:07:45.802 15260-15260/com.uudon.enation E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.uudon.enation, PID: 15260
    java.lang.NoSuchMethodError: No static method get(Ljava/lang/String;)Lokhttp3/HttpUrl; in class Lokhttp3/HttpUrl; or its super classes (declaration of ‘okhttp3.HttpUrl‘ appears in /data/app/com.uudon.enation-FM7r5RGlulUe5TG0bA-WZQ==/base.apk)
        at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:506)
        at com.uudon.enation.net.ApiManager.api(ApiManager.kt:25)
        at com.uudon.enation.ui.login.LoginActivity.initData(LoginActivity.kt:29)
        at com.uudon.enation.base.BaseActivity.onCreate(BaseActivity.kt:14)
        at android.app.Activity.performCreate(Activity.java:8086)
        at android.app.Activity.performCreate(Activity.java:8074)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1313)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3755)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3961)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2386)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:213)
        at android.app.ActivityThread.main(ActivityThread.java:8178)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)

  

使用Retrofit2.9.0请求时报的错java.lang.NoSuchMethodError: No static method get(Ljava/lang/String;)Lokhttp3/HttpUrl

标签:highlight   its   imei   apk   oncreate   pre   oda   com   url   

原文地址:https://www.cnblogs.com/uudon/p/14209725.html


评论


亲,登录后才可以留言!