Android Recycle View LogCat: impossible de trouver une méthode

J'ai utilisé RecyclerView depuis la bibliothèque de support Android. Lorsqu'il est exécuté sur Samsung Galaxy S2 avec Android 4.1.2 (API 16), tous fonctionnent bien, mais dans Logcat je vois des messages:

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 

Devrais-je m'inquiéter de ces messages?

  • Java.lang.SecurityException: refus de permission: getIntentSender () lors de l'utilisation d'UiAutomation dans un test
  • NotifyDataSetChanged pour plusieurs cases à cocher
  • Démarrage d'un thread en cours d'exécution
  • Android Spinner Taille très grande
  • Eclipse ne présente pas la fenêtre du gestionnaire Avd et le projet Android
  • Comment déployer l'application Phonegap sur iPhone sans avoir du matériel Apple (iPhone + Mac)
  • Android Parcelable - RetailerOrderActivity.java return null
  • Les noms de paquets pour les domaines qui se terminent par .do
  • La taille du bitmap est-elle retournée par la caméra par intention?
  • Les versions résolues pour l'application (22.0.0) et l'application de test (21.0.3) diffèrent
  • Intent.putExtra List
  • Comment désactiver le mode de décalage BottomNavigationView?
  • One Solution collect form web for “Android Recycle View LogCat: impossible de trouver une méthode”

    Regardez cette réponse https://stackoverflow.com/a/18600156/1852441

    Fondamentalement, vous n'appeliez pas la méthode correcte. Vous devrez appeler la méthode de «support» correspondante.

    par exemple. Appeler getActionBar () de v14 au lieu de getSupportActionBar () de v7 entraînera ce problème.

    Assurez-vous d'appeler les méthodes de support et cette erreur disparaîtra.

    coAndroid est un fan Android de Google, tout sur les téléphones Android, Android Wear, Android Dev et Android Games Apps.