码迷,mamicode.com
首页 > 其他好文 > 详细

E/dalvikvm: Could not find class...

时间:2016-10-25 14:36:40      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:content   span   解决   tail   1.7   模拟器   support   widget   reference   

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...

标签:content   span   解决   tail   1.7   模拟器   support   widget   reference   

原文地址:http://www.cnblogs.com/chiangfai/p/5996345.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!