android studio找不到指定的文件

android studio找不到指定的文件,android,android-studio,android-gradle-plugin,Android,Android Studio,Android Gradle Plugin,每当我尝试运行android应用程序时,我都会在运行消息日志中收到一条错误消息 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依赖关系。

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

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依赖关系。有人能解释一下如何解决这个问题吗

渐变依赖项:

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

注意:我用谷歌搜索了这个错误,但唯一有这个问题的人是此人(),但答案不适用于我。

尝试关闭project,删除路径
D:\Apps\Application\app\build\mediates\classes\
上的文件夹
classes
,重新打开project并重建。当我遇到同样的问题时,它帮助了我。

我删除了构建文件夹,重建、关闭并重新打开了项目。没有任何帮助。请尝试将apk重命名为build/output/apk下显示的错误名称/