无法在 Android Studio 中清理项目 [英] Unable to clean project in Android Studio

查看:31
本文介绍了无法在 Android Studio 中清理项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

操作系统版本:Ubuntu 14.04 LTE 64 位

OS version: Ubuntu 14.04 LTE 64 Bit

Java JRE/JDK 版本:Oracle JDK 1.8.0_11

Java JRE/JDK version: Oracle JDK 1.8.0_11

项目目录位于基于 NTFS 的驱动器上.

Project directory is on a NTFS based drive.

每当我尝试清理我的项目时,我都会得到如下内容.

Whenever I try to clean my project I get something like below.

:app:clean FAILED 错误:任务:app:clean"执行失败.

:app:clean FAILED Error:Execution failed for task ':app:clean'.

无法删除文件:/media/DriveA/AndroidStudioWorkspace/DNA/app/build/intermediates/classes/debug/.../mechandising/MerchandizingActivity$3.class

Unable to delete file: /media/DriveA/AndroidStudioWorkspace/DNA/app/build/intermediates/classes/debug/.../mechandising/MerchandizingActivity$3.class

当我尝试手动删除构建文件夹时,出现以下错误.

When I try to delete the build folder manually I get the following error.

获取文件信息时出错'/media/DriveA/AndroidStudioWorkspace/DNA/app/build/intermediates/pre-dexed':输入/输出错误

Error when getting information for file '/media/DriveA/AndroidStudioWorkspace/DNA/app/build/intermediates/pre-dexed': Input/output error

我无法确定是 Linux 问题还是 Studio 问题.我在 Eclipse(相同驱动器)中没有遇到这样的问题,所以我只是认为这是我的工作室出了问题.

I am unable to figure out whether its a Linux problem or a Studio problem. I don't face such a problem in Eclipse (Same Drive) so I am just considering it to be something wrong with my studio.

有什么建议吗??

推荐答案

我遇到了同样的问题.

你需要直接去源文件.关闭工作室并转到问题所在的路径并删除那里的文件夹.

You need to go to the source file directly. Close the studio and go to the path the issue is located at and delete the folder there.

这篇关于无法在 Android Studio 中清理项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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