android - 使用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)
解决方案
推荐阅读
- r - 无法在 R 3.5.3 中安装 devtools 包
- java - 从 onAnimationEnd 在一个视图上播放动画序列
- android - Firebase Analytics 禁用受众国家跟踪
- javascript - 在声明链中使用 ,(逗号)而不是像 const、var 或 let 这样的适当变量定义是一种好的 JS 实践吗?
- cordova - Uncaught TypeError: Object(...) is not a function for Cordova plugin reference
- reactjs - React Formik 表单:允许用户选择 p 和 h 标签的文本区域
- r - 检索从向量中的起始元素添加固定数字后出现的元素
- ruby - 如何创建一个 .each 循环以根据用户输入从哈希中获取键和值?
- kubernetes - 创建和删除 Pod 的步骤
- angular - 离子类型 4 和 Angular 上不存在属性“onDidDismiss”