我今天回来工作,我开始使用模拟器(KitKat)调试我的应用程序,我的应用程序运行正常.自上周五以来我做了一些改变,但并不多.
然后我转移到设备(Gingerbread)并注意到上周工作的应用程序已经开始在主活动的setContentView()上崩溃.以下是警告/错误消息:
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;
所有这些消息都出现在setContentView方法之后.
我注意到它提到了getFragmentManager,但这不是我的应用程序的一部分.由于它具有API 9兼容性,我使用的是AppCompat v7,getSupportFragmentManager并包含所需的Supporteverywhere.
我已经撤消了我今天早些时候所做的更改,但它仍然无效.
appcompat lib最近有可能更新吗?我正在使用Gradle来获取大部分内容:
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') }