VFY: impossible to solve [a lot of things]

I got back to work today, and I started debugging my application using an emulator (KitKat), and my application is working fine. I made some changes from last Friday, but not so much.

Then I switched to the device (Gingerbread) and noticed that the application running last week started crashing right on the main activity of setContentView() . The following are warnings / error messages:

 W/ActivityThread﹕ Application com.example.myapp is waiting for the debugger on port 8100... W/dalvikvm﹕ VFY: unable to resolve static method 790: Landroid/net/TrafficStats;.setThreadStatsTag (I)V W/dalvikvm﹕ VFY: unable to resolve instance field 50 W/dalvikvm﹕ VFY: unable to resolve virtual method 95: Landroid/app/Activity;.getFragmentManager ()Landroid/app/FragmentManager; W/dalvikvm﹕ Unable to resolve superclass of Lmaps/aj/r; (671) W/dalvikvm﹕ Link of class 'Lmaps/aj/r;' failed W/dalvikvm﹕ Unable to resolve superclass of Lmaps/ay/an; (6382) W/dalvikvm﹕ Link of class 'Lmaps/ay/an;' failed W/dalvikvm﹕ Unable to resolve superclass of Lmaps/c/i; (6613) W/dalvikvm﹕ Link of class 'Lmaps/c/i;' failed E/dalvikvm﹕ Could not find class 'maps.c.i', referenced from method maps.e.al.a W/dalvikvm﹕ VFY: unable to resolve new-instance 6818 (Lmaps/c/i;) in Lmaps/e/al; 

All these messages appear after the setContentView method.

I noticed that he mentions getFragmentManager , however this is not part of my application. Since it is compatible with API 9, I use AppCompat v7, getSupportFragmentManager and including Support wherever needed.

I canceled the changes I made today today, but it still does not work. Is it possible to update appcompat lib recently? I use Gradle to get most of them:

 dependencies { compile 'com.android.support:appcompat-v7:+' compile 'com.google.android.gms:play-services: +@aar ' compile 'com.google.code.gson:gson: +@jar ' compile 'com.google.zxing:android-integration: +@jar ' compile 'com.googlecode.libphonenumber:libphonenumber: +@jar ' compile 'com.intellij:annotations:12.0' compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':Facebook') } 

I do not know how to debug these VFY errors. What can I do to try to solve them?

+6
source share
1 answer

I don't know how to debug these VFY errors

This is not a mistake. These are warnings. A “W” at the beginning of each line is short for a “warning”.

These warnings simply mark the classes, methods, and other characters that Dalvik saw when loading classes from the APK that it could not solve. Until you actually execute any code containing any of these missing things, everything will be fine. Moreover, they are largely inevitable, as they are a natural side effect of the application and library code, taking advantage of new features on newer devices that support these features.

+6
source

All Articles