android studio编译的apk找不到类

1.5版本貌似没问题,升级2.0版本后,任意建立一个工程都会出现下面的错误,找不到类。自己推测到是instantRun的问题,设置中关了倒是不报错了。但是有没有其他解决办法,或者出现错误的原因?虽然不影响运行,但是影响调试,log中出现这些找不到类的错误,严重影响log排查。

04-10 11:09:48.029 20658-20658/zhuo.myapp E/InstantRun: Could not find slices in APK; aborting.
04-10 11:09:48.039 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources
04-10 11:09:48.039 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.pruneResourceCache
04-10 11:09:48.059 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.059 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.059 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.059 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.widget.Toolbar', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.069 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.069 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.069 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.069 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.transition.TransitionManager', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.069 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.079 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.app.assist.AssistContent', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.079 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.view.SearchEvent', referenced from method zhuo.myapp.MainActivity.access$super
04-10 11:09:48.079 20658-20658/zhuo.myapp E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method zhuo.myapp.MainActivity.access$super
2016-04-10 11:48 添加评论 分享
已邀请:

最佳回复

1

Evil_Song - Android & Web & WPF

赞同来自: ask

可以试着选择一下包名或者搜索一下包名
0

sizeof - 90后

赞同来自:

我也是这个问题不知道怎么解决,期待中
0

ningwy - 博学、审问、慎思、明辨、笃行

赞同来自:

同样遇到这个问题,找了好多资料都没有解决方法,虽然不影响运行,但看到这么多错误,强迫症发作
0

gaojs - 曾获国家奖学金,软件开发10余年!

赞同来自:

我也发现了此问题,关注中
0

jarwell - Android小白

赞同来自:

要回复问题请先登录注册

退出全屏模式 全屏模式 回复