1

after updating suddenly i am getting this type of error

 unable to resolve virtual method 741: Landroid/content/ContextWrapper;.checkSelfPermission (Ljava/lang/String;)
 I/dalvikvm: Could not find method android.app.AppOpsManager.checkPackage, referenced from method com.google.android.gms.common.zze.zzb
I/dalvikvm: Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza
 Could not find method android.app.Activity.stopLockTask, referenced
 I/dalvikvm: Could not find method android.view.View.startNestedScroll, 
 nable to resolve virtual method 21303: Landroid/widget/Button;.getAccessibilityClassName ()Ljava/lang/CharSequence;
VFY: unable to resolve virtual method 18006: Landroid/support/v7/widget/RecyclerView$ViewHolder;.unScrap ()V

other errors are also present but most of the unable to resolve virtual method

app is not crashing but why this type of error coming

is this issue or its fine ?

Edit error are RecyclerView related like RecyclerViewHolder.access$super

  DexOpt: illegal method access (call     
 Landroid/support/v4/app/FragmentActivity;.doReallyStop
 DexOpt: illegal method access (call Landroid/support/v4/app/FragmentActivity;.doReallyStop
could not find method android.app.Activity.getContentTransitionManager,
fadden
  • 51,356
  • 5
  • 116
  • 166
andro
  • 1,007
  • 1
  • 14
  • 32

2 Answers2

1

This is normal behaviour.

If, for example, you compile targeting API 20 but are running this on an API 15 device, there will be a few methods and classes missing. That's what these logs are warning you.

If you are careful not to call newer API methods on older versions (Android studio would warn you about that and if use the support library they take care of those things) you will be fine.

Source: How to resolve this error VFY: unable to resolve virtual method

Or better yet in this bug report taken from that answer

https://code.google.com/p/android/issues/detail?id=198567

Community
  • 1
  • 1
Pedro Loureiro
  • 11,436
  • 2
  • 31
  • 37
0

There are many similar questions already asked here. However there is no specific solution for these error logs. I have also faced such error messages in Logcat after upgrading to Android Studio:2.0, although App is not crashing.

You can try this answer if it solves your problem. Still as far as your app is not crashing you can ignore them. Latest version of Android studio may has something for these logs. Hope for quick update.

Community
  • 1
  • 1
Uniruddh
  • 4,427
  • 3
  • 52
  • 86