ActivityThread错误

时间:2016-09-12 19:30:42

标签: android compiler-errors

每当我将我的Android代码编译到我的手机(而不是模拟器)时,我总是在应用程序开始之前获得这种代码。 (这只是一个警告,应用程序运行完美)

09-09 22:13:04.785 26459-26459/com.adrastel.niviel W/ActivityThread: Application com.adrastel.niviel can be debugged on port 8100...
09-09 22:13:07.355 26459-26459/com.adrastel.niviel W/art: Failed to find OatDexFile for DexFile /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_8-classes.dex ( canonical path /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_8-classes.dex) with checksum 0x2dd48748 in OatFile /data/data/com.adrastel.niviel/cache/slice-slice_8-classes.dex
09-09 22:13:08.250 26459-26459/com.adrastel.niviel W/art: Failed to find OatDexFile for DexFile /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_7-classes.dex ( canonical path /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_7-classes.dex) with checksum 0x5a6c56b9 in OatFile /data/data/com.adrastel.niviel/cache/slice-slice_7-classes.dex
09-09 22:13:09.560 26459-26459/com.adrastel.niviel W/art: Failed to find OatDexFile for DexFile /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_3-classes.dex ( canonical path /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_3-classes.dex) with checksum 0xb4a18bff in OatFile /data/data/com.adrastel.niviel/cache/slice-slice_3-classes.dex
09-09 22:13:10.950 26459-26459/com.adrastel.niviel W/art: Failed to find OatDexFile for DexFile /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_2-classes.dex ( canonical path /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_2-classes.dex) with checksum 0x667d4b9b in OatFile /data/data/com.adrastel.niviel/cache/slice-slice_2-classes.dex
09-09 22:13:12.065 26459-26459/com.adrastel.niviel W/art: Failed to find OatDexFile for DexFile /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_1-classes.dex ( canonical path /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_1-classes.dex) with checksum 0x1672e1ac in OatFile /data/data/com.adrastel.niviel/cache/slice-slice_1-classes.dex
09-09 22:13:12.905 26459-26459/com.adrastel.niviel W/art: Failed to find OatDexFile for DexFile /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_0-classes.dex ( canonical path /data/data/com.adrastel.niviel/files/instant-run/dex/slice-slice_0-classes.dex) with checksum 0x2204c222 in OatFile /data/data/com.adrastel.niviel/cache/slice-slice_0-classes.dex

你知道如何解决这个问题吗?

干杯

1 个答案:

答案 0 :(得分:2)

这看起来像是Instant Run的一个问题。 Android Studio的即时运行功能使您可以在手机上预览快速代码更改,而无需重新编译整个应用程序包。您可以关闭该功能,编译和测试应用程序仍然有效。 (该功能仍然有点故障,所以我个人更喜欢禁用它)

要关闭它,请转到文件 - >设置 - >构建,执行,部署 - >即时运行并取消选中"启用即时运行"