首页 > 解决方案 > 使用Android Proguard后,打开App时出现这个错误:java.lang.NoSuchMethodError

问题描述

这是发生了什么,但我不知道出了什么问题。谁能帮助我,将不胜感激。</p>

java.lang.NoSuchMethodError: No static method c(Ljava/lang/String;Ljava/lang/String;)I in class Landroid/util/Log; or its super classes (declaration of 'android.util.Log' appears in /system/framework/framework.jar:classes2.dex)
    at android.support.multidex.MultiDex.isVMMultidexCapable(SourceFile:333)
    at android.support.multidex.MultiDex.<clinit>(SourceFile:78)
    at android.support.multidex.MultiDex.install(SourceFile)
    at android.support.multidex.MultiDexApplication.attachBaseContext(SourceFile:39)
    at android.app.Application.attach(Application.java:203)
    at android.app.Instrumentation.newApplication(Instrumentation.java:1011)
    at android.app.Instrumentation.newApplication(Instrumentation.java:995)
    at android.app.LoadedApk.makeApplication(LoadedApk.java:806)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5786)
    at android.app.ActivityThread.-wrap2(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1768)
    at android.os.Handler.dispatchMessage(Handler.java:110)
    at android.os.Looper.loop(Looper.java:203)
    at android.app.ActivityThread.main(ActivityThread.java:6564)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1134)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)

标签: androidproguardandroid-proguard

解决方案


推荐阅读