无法捕获任务android studio的输入文件的快照 [英] failed to capture snapshot of input files for task android studio
问题描述
我正在尝试制作android studio项目,
I am trying to make android studio project,
我在Android设备管理器中运行过的项目很好, 但是当我尝试在真实设备上运行时,出现了一些错误:
I was run project in Android Device Manager is fine, but when I try to run on a real device I have some error:
Error:Failed to capture snapshot of input files for task 'transformClassesWithInstantRunForDebug' property 'otherFileInputs' during up-to-date check.
> Failed to create MD5 hash for file 'C:\Users\psd1-pc\AppData\Local\Android\sdk\platforms\android-21\android.jar'.
我的真实设备装有Lollipop Android, 我该怎么解决这个问题
my real device have Lollipop Android, what do I do for resolve this problem
谢谢.
推荐答案
启用即时运行后,您需要使用相同的api级别构建和运行项目.使用Instant Run为特定api构建的调试应用仅适用于真实设备中相同的api级别.
With Instant Run enabled, you need to build and run the project with the same api level. A debug app build with Instant Run for a specific api will only work for the same api level in the real device.
如果要运行该应用程序,请关闭即时运行",然后重新构建该应用程序.
If you want to run the app, please turn off Instant Run, then rebuild the app.
这篇关于无法捕获任务android studio的输入文件的快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!