Julio Ensutias Julio Ensutias -3 years ago 466
Android Question

failed to capture snapshot of input files for task android studio

I am trying to make android studio project,

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'.


my real device have Lollipop Android,
what do I do for resolve this problem

thank you.

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download