错误:任务':app:compileDebugJavaWithJavac'的执行失败。java.io.FileNotFoundException:

普兰尼

更新并重新启动android studio后,我得到以下错误。

错误:任务':app:compileDebugJavaWithJavac'的执行失败。java.io.FileNotFoundException:/.../ Workspace / MyAppName / app / build / intermediates / exploded-aar / com.google.android.gms / play-services / 8.3.0 / jars / classes.jar(无此类文件或目录)

我已经尝试清理并重建项目,但是每次遇到上述错误时,我都会尝试清理。

编辑:

我的成绩如下:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.google.android.gms:play-services:8.4.0'
 }
Paresh mayani

Instant run中存在一个错误,并且已根据工具android网站修复了该错误。

在此处输入图片说明

解:

升级构建工具使用alpha6构建gradle版本。

dependencies {
    classpath 'com.android.tools.build:gradle:2.0.0-alpha6'
}

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

执行失败的任务“:compileDebugJavaWithJavac

出现错误:任务app:transformClassesWithMultidexlistForDebug的执行失败

错误:任务':app:transformClassesAndResourcesWithProguardForRelease的执行失败

Android Studio中的任务:app:compileDebugJavaWithJavac执行失败

错误:任务':app:processDebugResources'的执行失败。> java.io.IOException:无法在Android Studio中删除文件夹“”

错误:Gradle:任务':app:preDexDebug'执行失败

java io FileNotFoundException

任务':app:compileDebugJavaWithJavac'的执行失败,Android Studio 3.1更新

错误:任务':app:transformClassesWithInstantRunSlicerForDebug'的执行失败。> java.io.IOException:

Gradle错误-任务':app:dexDebug'的执行失败

android-任务':app:compileDebugJavaWithJavac'的执行失败

TransformException:错误:任务':app:transformClassesWithDexForDebug'的执行失败

错误:任务“:app:transformResourcesWithMergeJavaResForDebug”的执行失败

错误:任务':app:packageRelease'的执行失败。> java.io.IOException:无法读取zip文件

文件的任务':app:compileDebugJavaWithJavac'MD5哈希执行失败

任务':app:compileDebugJavaWithJavac'的执行失败。Android Studio

如何清除此“任务':app:compileDebugJavaWithJavac执行失败”错误?(带有片段的导航视图)

任务':app:compileDebugJavaWithJavac'的执行失败。android studio更新后

任务':app:compileDebugJavaWithJavac'的执行失败。反应性的

任务':app:compileDebugJavaWithJavac'的执行失败。>找不到tools.jar

错误:任务':app:compileDebugKotlin'的执行失败

错误:任务':app:dexDebug'的执行失败

关键工具错误:java.io.FileNotFoundException

构建时出现匕首异常。错误:任务':app:compileDebugJavaWithJavac'的执行失败。java.lang.IllegalStateException

任务“:app:compileDebugJavaWithJavac”执行失败。> 编译失败

任务执行失败:compileDebugJavaWithJavac

Gradle 错误:任务 ':app:compileDebugJavaWithJavac' 执行失败

Gradle 错误:任务 ':app:compileKotlin' 执行失败。> java.io.IOException

Android:任务':app:compileDebugJavaWithJavac'的执行失败