7

nicht finden Ich habe RecyclerView von Android Support Library verwenden. Wenn auf Samsung Galaxy S2 mit Android 4.1.2 (API 16) laufen, die alle gut funktionieren, aber in Logcat Ich sehe Nachrichten:Android Recycle View LogCat: Konnte Methode

03-24 I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.isUpdated()Z from Lnet/mytest/TransactionsAdapter$TransactionsAdapterViewHolder;) 
03-24 I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.isUpdated, referenced from method net.mytest.TransactionsAdapter$TransactionsAdapterViewHolder.access$super 
03-24 W/dalvikvm: VFY: unable to resolve virtual method 16775: Landroid/support/v7/widget/RecyclerView$ViewHolder;.isUpdated()Z 
03-24 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0031 
03-24 I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.flagRemovedAndOffsetPosition (IIZ)V from Lnet/mytest/TransactionsAdapter$TransactionsAdapterViewHolder;) 
03-24 I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.flagRemovedAndOffsetPosition, referenced from method net.mytest.TransactionsAdapter$TransactionsAdapterViewHolder.access$super 
03-24 W/dalvikvm: VFY: unable to resolve virtual method 16759: Landroid/support/v7/widget/RecyclerView$ViewHolder;.flagRemovedAndOffsetPosition (IIZ)V 
03-24 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0053 
03-24 I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.isRemoved()Z from Lnet/mytest/TransactionsAdapter$TransactionsAdapterViewHolder;) 
03-24 I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.isRemoved, referenced from method net.mytest.TransactionsAdapter$TransactionsAdapterViewHolder.access$super 
03-24 W/dalvikvm: VFY: unable to resolve virtual method 16772: Landroid/support/v7/widget/RecyclerView$ViewHolder;.isRemoved()Z 
03-24 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0058 
03-24 I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.clearPayload()V from Lnet/mytest/TransactionsAdapter$TransactionsAdapterViewHolder;) 
03-24 I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.clearPayload, referenced from method net.mytest.TransactionsAdapter$TransactionsAdapterViewHolder.access$super 
03-24 W/dalvikvm: VFY: unable to resolve virtual method 16754: Landroid/support/v7/widget/RecyclerView$ViewHolder;.clearPayload()V 
03-24 D/dalvikvm: VFY: replacing opcode 0x6f at 0x007c 
03-24 I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.isAdapterPositionUnknown()Z from Lnet/mytest/TransactionsAdapter$TransactionsAdapterViewHolder;) 
03-24 I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.isAdapterPositionUnknown, referenced from method net.mytest.TransactionsAdapter$TransactionsAdapterViewHolder.access$super 
03-24 W/dalvikvm: VFY: unable to resolve virtual method 16768: Landroid/support/v7/widget/RecyclerView$ViewHolder;.isAdapterPositionUnknown()Z 
03-24 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0086 
03-24 I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.offsetPosition (IZ)V from Lnet/mytest/TransactionsAdapter$TransactionsAdapterViewHolder;) 
03-24 I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.offsetPosition, referenced from method net.mytest.TransactionsAdapter$TransactionsAdapterViewHolder.access$super 
03-24 W/dalvikvm: VFY: unable to resolve virtual method 16777: Landroid/support/v7/widget/RecyclerView$ViewHolder;.offsetPosition (IZ)V 
03-24 D/dalvikvm: VFY: replacing opcode 0x6f at 0x00ad 
03-24 I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.shouldIgnore()Z from Lnet/mytest/TransactionsAdapter$TransactionsAdapterViewHolder;) 
03-24 I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.shouldIgnore, referenced from method net.mytest.TransactionsAdapter$TransactionsAdapterViewHolder.access$super 
03-24 W/dalvikvm: VFY: unable to resolve virtual method 16786: Landroid/support/v7/widget/RecyclerView$ViewHolder;.shouldIgnore()Z 
03-24 D/dalvikvm: VFY: replacing opcode 0x6f at 0x00b9 
03-24 I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.setFlags (II)V from Lnet/mytest/TransactionsAdapter$TransactionsAdapterViewHolder;) 
03-24 I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.setFlags, referenced from method net.mytest.TransactionsAdapter$TransactionsAdapterViewHolder.access$super 
03-24 W/dalvikvm: VFY: unable to resolve virtual method 16782: Landroid/support/v7/widget/RecyclerView$ViewHolder;.setFlags (II)V 
03-24 D/dalvikvm: VFY: replacing opcode 0x6f at 0x00d4 
03-24 I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v7/widget/RecyclerView$ViewHolder;.addChangePayload (Ljava/lang/Object;)V from Lnet/mytest/TransactionsAdapter$TransactionsAdapterViewHolder;) 
03-24 I/dalvikvm: Could not find method android.support.v7.widget.RecyclerView$ViewHolder.addChangePayload, referenced from method net.mytest.TransactionsAdapter$TransactionsAdapterViewHolder.access$super 
03-24 W/dalvikvm: VFY: unable to resolve virtual method 16751: Landroid/support/v7/widget/RecyclerView$ViewHolder;.addChangePayload (Ljava/lang/Object;)V 
03-24 D/dalvikvm: VFY: replacing opcode 0x6f at 0x00dc 

Sollte ich über diese Nachrichten Sorgen machen?

Antwort

0

Blick auf diese Antwort https://stackoverflow.com/a/18600156/1852441

Grundsätzlich sind Sie nicht die richtige Methode aufrufen. Sie müssen die entsprechende "support" -Methode aufrufen.

z. Der Aufruf von getActionBar() von v14 anstelle von getSupportActionBar() von v7 wird dieses Problem verursachen.

Stellen Sie sicher, dass Sie die Supportmethoden aufrufen und dieser Fehler verschwindet.