android studio 找不到指定的文件 [英] android studio cannot find the file specified

查看:34
本文介绍了android studio 找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试运行我的 android 应用程序时,我都会在运行消息日志中收到一条错误消息.

Whenever I try to run my android application, I receive an error message in the run message log.

I/O Error: D:\Apps\Application\app\build\intermediates\classes\debug\app.apk (The system cannot find the file specified)

我不认为这是编码错误,因为 android studio 没有告诉我我的 java 类或 xml 布局中存在错误,但是如果您确实需要代码,请进行评论.我认为错误出在 gradle 依赖项中.谁能解释一下如何解决这个问题?

I don't believe this is a coding error because android studio is not telling me that there are errors within my java classes or xml layouts, but if you do want code, please comment so. I think the error is in the gradle dependencies. Can anyone explain how to solve this issue?

Gradle 依赖项:

Gradle dependencies:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile 'com.google.android.gms:play-services:7.0.0'
}

注意:我在谷歌上搜索过这个错误,但唯一也遇到过这个问题的就是这个人 (android studio 无法构建)但答案不适用于我.

Note: I have googled this error, but the only one who has also had this issue is this person (android studio cant build) but the answer doesn't apply to me.

推荐答案

Try to close project, remove folder classes on path D:\Apps\Application\app\build\intermediates\classes\,重新打开项目并重建.当我遇到同样的问题时,它帮助了我.

Try to close project, remove folder classes on path D:\Apps\Application\app\build\intermediates\classes\, reopen project and rebuild. When I had same issue, it helped me.

这篇关于android studio 找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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