Error:Failed to capture snapshot of output files for task 'transformClassesWithDexForDebug' during up-to-date check

五迷三道 提交于 2019-12-01 03:06:14

问题


i am new to android app development and trying to build a simple interface, i am getting this bug. how do i resolve it?

the whole bug statement is this :

Error:Failed to capture snapshot of output files for task 'transformClassesWithDexForDebug' during up-to-date check.

java.io.FileNotFoundException: F:\AndroidStudioProjects\thirdone\app\build\intermediates\transforms\dex\debug\folders\1000\10\com.android.support-appcompat-v7-25.0.1_b5d942cb3c7f3d8ae436ecd262f1d7a26bba1e06\classes.dex (The system cannot find the file specified)


回答1:


The issue in the latest android studio update is with the Instant Run feature. There happens to be a serious issue with gradle, so you may either turn off the Anti-Virus or the Instant Run feature till then.

Resource: https://code.google.com/p/android/issues/detail?id=229918




回答2:


I am using android studio 2.3 and solved this issue by disabling the anti-virus protection.



来源:https://stackoverflow.com/questions/41136640/errorfailed-to-capture-snapshot-of-output-files-for-task-transformclasseswithd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!