Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 289
Julio Ensutias Avatar asked Mar 09 '23 08:03

Julio Ensutias


1 Answers

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.

like image 197
ישו אוהב אותך Avatar answered Apr 05 '23 22:04

ישו אוהב אותך