机器人工作室找不到指定文件 [英] android studio cannot find the file specified

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

问题描述

每当我尝试运行我的Andr​​oid应用程序,我收到在运行消息日志的错误消息。

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的工作室是不会告诉我,有我的Java类或XML布局中的错误,但是如果你想要code,请评论等等。我认为错误是在摇篮依赖。任何人都可以解释如何解决这个问题呢?

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?

摇篮依赖关系:

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'
}

注:我用Google搜索这个错误,但唯一一个谁也有这个问题是这样的人(的 Android的工作室着构建),但答案并不适用于我。

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.

推荐答案

尝试关闭项目,在路径中删除文件夹 D:\ APPS \应用程序\程序\编译\中间体\类\ ,重新打开项目并重建。当我有同样的问题,它帮助我。

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.

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

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