首次启动需要很长时间(ClassLoader 引用了未知路径) [英] First launch take long time (ClassLoader referenced unknown path)

查看:15
本文介绍了首次启动需要很长时间(ClassLoader 引用了未知路径)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将我的 Android studio 更新为 2.0 并将 gradle 更新为 2.0.0 并将 SDK-Platform 更新为 23.0.3 之后当我想启动时应用程序花费太多时间(大约 2-3 秒)并且在 Android Monitor 中出现以下警告:

After updating my Android studio to 2.0 and gradle to 2.0.0 and SDK-Platform to 23.0.3 When I want to launch application it take too much time (about 2-3 second) and following warning appears in Android Monitor :

W/System: ClassLoader referenced unknown path: /data/app/net.hadifar.test-1/lib/arm
W/System: ClassLoader referenced unknown path: /data/app/net.hadifar.test-1/lib/arm
 W/art: Suspending all threads took: 5.439ms
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
W/art: Suspending all threads took: 6.808ms

但是我第二次启动应用程序时它照常运行.任何机构都可以知道是什么问题吗?

But second time I launch application it's run as usual. Can any body knows what's the issue ?

推荐答案

在 2.0 版中添加了一个新功能 即时运行.

In version 2.0 a new feature was added instant-run.

启用此功能工具添加了大量元信息,因此首次构建和上传需要更多时间.

To enable this feature tool adds a lots of meta information, so the first build and upload takes more time.

注意

  • 设置 minSdkVersion 15 或更高版本以获得任何利润;

  • setting minSdkVersion 15 or higher to get any profit;

Instant Run 目前不适用于 Jack(为了支持 java 8) 并将在使用新工具链时禁用;

Instant Run does not currently work with Jack (to support java 8) and will be disabled while using the new toolchain;

你可能仍然会遇到一些故障和错误;

you may still encounter some glitches and bugs;

这里我们可以写(或投票)问题(报告以制作更好的工具).

Here we can write (or vote) issues (report to make the better tool).

这篇关于首次启动需要很长时间(ClassLoader 引用了未知路径)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆