E/dalvikvm: Could not find class...

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了E/dalvikvm: Could not find class...相关的知识,希望对你有一定的参考价值。

logcat日志输出信息:

10-25 05:05:41.737 28659-28659/net.chiangfai I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
10-25 05:05:41.737 28659-28659/net.chiangfai W/dalvikvm: VFY: unable to resolve virtual method 702: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
10-25 05:05:41.737 28659-28659/net.chiangfai D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
10-25 05:05:41.737 28659-28659/net.chiangfai I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
10-25 05:05:41.737 28659-28659/net.chiangfai W/dalvikvm: VFY: unable to resolve virtual method 704: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
10-25 05:05:41.737 28659-28659/net.chiangfai D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
10-25 05:05:41.745 28659-28659/net.chiangfai E/dalvikvm: Could not find class android.graphics.drawable.RippleDrawable, referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering

原因:出现以上情况,是因为代码所调用的一些方法只能在较高的API level(高于minSdkVersion)上使用,而调试用的机子或模拟器所用的SDK Version小于该API level

 

解决来源:http://blog.csdn.net/jiawei6212130/article/details/52302432

以上是关于E/dalvikvm: Could not find class...的主要内容,如果未能解决你的问题,请参考以下文章

Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac‘ Could not resolve all

Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac‘ Could not resolve all

IO 异常:The Network Adapter could not establish the connection 怎么解决

Could not update the distribution database subscription table. The subscription status could not be

Could not execute menu item(internal error),[Exception] Could not perform service action:服务尚未启动。

git提示错误关于错误:ssh: Could not resolve hostname github.com: Name or service not known.fatal: Could not r