这些Android logcat警告意味着什么?

时间:2014-11-21 15:51:34

标签: android android-studio logcat android-support-library

它似乎不会影响我的应用中的任何内容......我是第一次使用Android支持库(我的项目到目前为止还没有使用过支持库),但这是一个没有太多定制方式的新项目。活动由Android Studio 0.9.2生成并实现导航抽屉。

在运行Android 4.4.2的Verizon Samsung Galaxy SIII上运行此功能。项目设置为minSDK为15,目标SDK为21。

11-21 10:31:18.204    7095-7095/com.myapp.debug I/dalvikvm﹕ Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted
11-21 10:31:18.204    7095-7095/com.myapp.debug W/dalvikvm﹕ VFY: unable to resolve virtual method 11400: Landroid/view/ViewGroup;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V
11-21 10:31:18.204    7095-7095/com.myapp.debug D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0000
11-21 10:31:18.204    7095-7095/com.myapp.debug I/dalvikvm﹕ Could not find method android.view.ViewGroup.onStopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onStopNestedScroll
11-21 10:31:18.204    7095-7095/com.myapp.debug W/dalvikvm﹕ VFY: unable to resolve virtual method 11406: Landroid/view/ViewGroup;.onStopNestedScroll (Landroid/view/View;)V
11-21 10:31:18.204    7095-7095/com.myapp.debug D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0000
11-21 10:31:18.204    7095-7095/com.myapp.debug I/dalvikvm﹕ Could not find method android.support.v7.internal.widget.ActionBarOverlayLayout.stopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.setHideOnContentScrollEnabled
11-21 10:31:18.204    7095-7095/com.myapp.debug W/dalvikvm﹕ VFY: unable to resolve virtual method 8977: Landroid/support/v7/internal/widget/ActionBarOverlayLayout;.stopNestedScroll ()V
11-21 10:31:18.204    7095-7095/com.myapp.debug D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000e
11-21 10:31:18.234    7095-7095/com.myapp.debug I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
11-21 10:31:18.234    7095-7095/com.myapp.debug W/dalvikvm﹕ VFY: unable to resolve virtual method 368: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
11-21 10:31:18.234    7095-7095/com.myapp.debug D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
11-21 10:31:18.234    7095-7095/com.myapp.debug I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
11-21 10:31:18.234    7095-7095/com.myapp.debug W/dalvikvm﹕ VFY: unable to resolve virtual method 390: Landroid/content/res/TypedArray;.getType (I)I
11-21 10:31:18.234    7095-7095/com.myapp.debug D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002

如果我猜测(我是),我错过了android.support.v7所需的库。但我不知道在哪里或哪里找到它。

4 个答案:

答案 0 :(得分:9)

我想补充一下@Monte Creasor所解释的内容。 我遇到了同样的问题并咨询了this bug report,其中基本上说这个问题可能是由com.android.support:appcompat-v7:21.0.3引起的,关于使用Android' s所需的主要依赖项新的布局功能。 尝试回到v7:20.0.0,这应该解决问题,就像我和这个错误报告编写者一样。

实际上,您需要更改的内容是应用build.gradle行:

compile 'com.android.support:appcompat-v7:21.0.3'或您以后的任何版本

compile 'com.android.support:appcompat-v7:20.0.0'

答案 1 :(得分:2)

当您使用滑动抽屉示例运行android studio 1.0而不添加任何其他代码并使用项目创建向导提供的所有默认值时,会发生这些错误。所以它似乎是一个Android Studio问题而不是开发人员编码错误。

答案 2 :(得分:0)

我有同样的问题,也无法让我的ListFragment可滚动。之前使用v4支持库21.0.3并升级到22.0.0。

这解决了我的问题!

答案 3 :(得分:0)

我目前正在查看使用索尼远程设备实验室生成的日志,同样的警告也会出现,因此它不是Android Studio问题。我怀疑它在应用程序开发过程中使用的ActionBar主题存在问题。

相关问题