错误:任务':app:transformClassesWithInstantRunSlicerForDebug'的执行失败. > java.io.IOException: [英] Error:Execution failed for task ':app:transformClassesWithInstantRunSlicerForDebug'. > java.io.IOException:

查看:108
本文介绍了错误:任务':app:transformClassesWithInstantRunSlicerForDebug'的执行失败. > java.io.IOException:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试运行我的应用程序时,都会出现此错误:

whenever I try to run my app i get this error :

错误:任务执行失败

 :app:transformClassesWithInstantRunSlicerForDebug'.
 java.io.IOException: Failed to delete 

 C:\Users\ashis\AndroidStudioProjects\FirstApp\app\build\intermediates\instant-run-support\debug\restart-changes.txt**

这是输出:

信息:分级任务

[:app:assembleDebug] :app:preBuild截止日期 :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild最新 :app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE :app:prepareDebugDependencies :app:compileDebugAidl更新日期 :app:compileDebugRenderscript截止日期 :app:generateDebugBuildConfig截止日期 :app:mergeDebugShaders截止日期 :app:compileDebugShaders截止日期 :app:generateDebugAssets更新日期 :app:mergeDebugAssets截止日期 :app:generateDebugResValues截止日期 :app:generateDebugResources最新 :app:mergeDebugResources最新 :app:processDebugManifest截止日期 :app:processDebugResources最新 :app:generateDebugSources最新 :app:incrementalDebugJavaCompilationSafeguard截至日期 :app:compileDebugJavaWithJavac截止日期 :app:compileDebugNdk截止日期 :app:compileDebugSources最新 :app:buildInfoDebugLoader :app:transformClassesWithExtractJarsForDebug截止日期 :app:transformClassesWithInstantRunVerifierForDebug截至日期 :app:transformClassesWithJavaResourcesVerifierForDebug截至日期 :app:mergeDebugJniLibFolders截止日期 :app:transformNative_libsWithMergeJniLibsForDebug截止日期 :app:processDebugJavaRes截止日期 :app:transformResourcesWithMergeJavaResForDebug截止日期 :app:transformResourcesAndNative_libsWithJavaResourcesVerifierForDebug截止日期 :app:transformClassesWithInstantRunForDebug截止日期 :app:transformClasses_enhancedWithInstant + reloadDexForDebug更新日期 :app:incrementalDebugTasks :app:prePackageMarkerForDebug :app:fastDeployDebugExtractor截止日期 :app:generateDebugInstantRunAppInfo截止日期 :app:coldswapKickerDebug :app:transformClassesWithInstantRunSlicerForDebug失败 错误:任务':app:transformClassesWithInstantRunSlicerForDebug'的执行失败. java.io.IOException:无法删除C:\ Users \ ashis \ AndroidStudioProjects \ FirstApp \ app \ build \ intermediates \ instant-run-support \ debug \ restart-changes.txt 信息:建造失败 信息:总时间:1分钟6.761秒 信息:1个错误 信息:0警告 信息:在控制台中查看完整的输出

[:app:assembleDebug] :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE :app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:mergeDebugShaders UP-TO-DATE :app:compileDebugShaders UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE :app:compileDebugJavaWithJavac UP-TO-DATE :app:compileDebugNdk UP-TO-DATE :app:compileDebugSources UP-TO-DATE :app:buildInfoDebugLoader :app:transformClassesWithExtractJarsForDebug UP-TO-DATE :app:transformClassesWithInstantRunVerifierForDebug UP-TO-DATE :app:transformClassesWithJavaResourcesVerifierForDebug UP-TO-DATE :app:mergeDebugJniLibFolders UP-TO-DATE :app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE :app:processDebugJavaRes UP-TO-DATE :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE :app:transformResourcesAndNative_libsWithJavaResourcesVerifierForDebug UP-TO-DATE :app:transformClassesWithInstantRunForDebug UP-TO-DATE :app:transformClasses_enhancedWithInstant+reloadDexForDebug UP-TO-DATE :app:incrementalDebugTasks :app:prePackageMarkerForDebug :app:fastDeployDebugExtractor UP-TO-DATE :app:generateDebugInstantRunAppInfo UP-TO-DATE :app:coldswapKickerDebug :app:transformClassesWithInstantRunSlicerForDebug FAILED Error:Execution failed for task ':app:transformClassesWithInstantRunSlicerForDebug'. java.io.IOException: Failed to delete C:\Users\ashis\AndroidStudioProjects\FirstApp\app\build\intermediates\instant-run-support\debug\restart-changes.txt Information:BUILD FAILED Information:Total time: 1 mins 6.761 secs Information:1 error Information:0 warnings Information:See complete output in console

推荐答案

:app:transformClassesWithInstantRunSlicerForDebug". java.io.IOException:无法删除

:app:transformClassesWithInstantRunSlicerForDebug'. java.io.IOException: Failed to delete

-尝试清理项目并重建项目.

-- try to clean project and rebuild project.

从@Kael:通过Build-> Clean Project或Build-> Rebuild Project执行清理.

From @Kael: A clean is performed via Build -> Clean Project or Build -> Rebuild Project.

这篇关于错误:任务':app:transformClassesWithInstantRunSlicerForDebug'的执行失败. > java.io.IOException:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆