【问题标题】:Log cat unknown error on while running AccessibilityService in API 16 android在 API 16 android 中运行 AccessibilityService 时记录 cat unknown 错误
【发布时间】:2023-04-08 09:47:01
【问题描述】:

当我尝试在 android 的 API 16 中运行我的代码时,出现了一个未知的 logcat 警告和错误消息。它在 Android L 中运行。 我正在尝试使用代码获取通知。

有人知道吗?请帮忙。

07-09 20:52:45.850  26369-26369/? D/dalvikvm﹕ Late-enabling CheckJNI
07-09 20:52:46.681  26369-26369/com.example.tony.acctest E/Trace﹕ error opening trace file: No such file or directory (2)
07-09 20:52:47.362  26369-26369/com.example.tony.acctest I/dalvikvm﹕ Could not find method android.view.ViewGroup.onRtlPropertiesChanged, referenced from method android.support.v7.widget.Toolbar.onRtlPropertiesChanged
07-09 20:52:47.362  26369-26369/com.example.tony.acctest W/dalvikvm﹕ VFY: unable to resolve virtual method 13334: Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V
07-09 20:52:47.362  26369-26369/com.example.tony.acctest D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0007
07-09 20:52:47.372  26369-26369/com.example.tony.acctest I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
07-09 20:52:47.372  26369-26369/com.example.tony.acctest W/dalvikvm﹕ VFY: unable to resolve virtual method 412: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
07-09 20:52:47.372  26369-26369/com.example.tony.acctest D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
07-09 20:52:47.372  26369-26369/com.example.tony.acctest I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
07-09 20:52:47.372  26369-26369/com.example.tony.acctest W/dalvikvm﹕ VFY: unable to resolve virtual method 434: Landroid/content/res/TypedArray;.getType (I)I
07-09 20:52:47.372  26369-26369/com.example.tony.acctest D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002

我无法运行该服务,它不工作。据我所知,代码应该从 API 级别 14 开始工作。

要参考代码,请看我在Cannot access notification through Android AccessibilityService的回答

【问题讨论】:

    标签: android notifications warnings android-logcat accessibilityservice


    【解决方案1】:

    logcat 错误仍在显示,但我找到了。当我使用 API 版本 14 编译代码时,该代码有效。

    【讨论】:

      猜你喜欢
      • 2020-02-11
      • 2014-05-02
      • 1970-01-01
      • 2011-12-07
      • 1970-01-01
      • 1970-01-01
      • 2018-06-29
      • 2023-03-25
      • 2015-12-10
      相关资源
      最近更新 更多