E/dalvikvm:找不到课程 [英] E/dalvikvm: Could not find class

查看:86
本文介绍了E/dalvikvm:找不到课程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我触摸操作栏按钮时,我在Android应用程序中遇到锁定.我什至没有得到ANR对话.

I am experiencing a lock-up in my Android app when I touch an Action Bar button. I don't even get an ANR dialogue.

我看到的唯一LogCat错误是:

The only LogCat errors I am seeing are:

02-01 14:59:15.328 30107-30170/com.complync.complyncmobile E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.Restarter.getActivities
02-01 14:59:27.241 6513-6513/com.complync.complyncmobile E/Trace: error opening trace file: Permission denied (13)
02-01 14:59:29.563 6513-6513/com.complync.complyncmobile E/dalvikvm: Could not find class 'android.app.Application$OnProvideAssistDataListener', referenced from method com.complync.complyncmobile.Happlication.access$super
02-01 14:59:29.563 6513-6513/com.complync.complyncmobile E/dalvikvm: Could not find class 'android.app.Application$OnProvideAssistDataListener', referenced from method com.complync.complyncmobile.Happlication.access$super
02-01 14:59:29.603 6513-6513/com.complync.complyncmobile E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources
02-01 14:59:29.923 6513-6513/com.complync.complyncmobile E/dalvikvm: Could not find class 'android.view.View$OnApplyWindowInsetsListener', referenced from method com.complync.complyncmobile.compoundcontrols.NumericKeypad.access$super
02-01 14:59:29.934 6513-6513/com.complync.complyncmobile E/dalvikvm: Could not find class 'android.view.WindowInsets', referenced from method com.complync.complyncmobile.compoundcontrols.NumericKeypad.access$super
02-01 14:59:29.954 6513-6513/com.complync.complyncmobile E/dalvikvm: Could not find class 'android.view.WindowInsets', referenced from method com.complync.complyncmobile.compoundcontrols.NumericKeypad.access$super
02-01 15:00:18.215 6513-6633/com.complync.complyncmobile E/dalvikvm: Could not find class 'java.beans.Transient', referenced from method com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector$Java7Support.<init>
02-01 15:00:18.225 6513-6633/com.complync.complyncmobile E/dalvikvm: Could not find class 'java.beans.ConstructorProperties', referenced from method com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector$Java7Support.findConstructorName
02-01 15:00:18.225 6513-6633/com.complync.complyncmobile E/dalvikvm: Could not find class 'java.beans.Transient', referenced from method com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector$Java7Support.findTransient
02-01 15:00:18.225 6513-6633/com.complync.complyncmobile E/dalvikvm: Could not find class 'java.beans.ConstructorProperties', referenced from method com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector$Java7Support.hasCreatorAnnotation

我正在努力了解这些错误的根源.

I am struggling to understand the origin of these errors.

推荐答案

所获取的日志是正常的.它们只是表示有条件地从您的代码中引用的那些类.因此,它们是否存在并不重要.

The logs that you're getting are normal. They simply represent those classes that are referred from your code conditionally. So, it doesn't matter if they exist or not.

找不到提到的类,因为它们在您运行应用程序的设备或仿真器中不存在.

The mentioned classes are not found because they don't exist on your device or the emulator at which you're running the app.

为什么它们不存在?因为它们是在较新的Android版本中引入的.

Why don't they exist? Because they were introduced in newer Android versions.

例如,从日志中提取您的第一堂课:

Pickup your first class from the log for example:

找不到类'android.util.ArrayMap'

Could not find class 'android.util.ArrayMap'

ArrayMap是在 API级别19 中引入的,可能您是在较旧的版本上运行您的应用,这就是记录错误的原因.但是它们是无害的.

ArrayMap was introduced in API level 19, probably you're running your app on an older version, and that's why the error is logged. They are harmless however.

这篇关于E/dalvikvm:找不到课程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆