![](/img/trans.png)
[英]Execution failed for task ':app:compileDebugJavaWithJavac
[英]Error:Execution failed for task ':app:compileDebugJavaWithJavac
当我尝试运行我的应用程序时遇到了这个问题
错误:任务':app:compileDebugJavaWithJavac'的执行失败。
java.io.FileNotFoundException:C:\\ Users \\ ggg \\ Desktop \\ android \\ app \\ libs \\ support-v4-25.1.0.jar(系统找不到指定的文件)
这是我的gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.gumball.at.adventure"
minSdkVersion 14
targetSdkVersion 23
ndk {
moduleName "player_shared"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.google.android.gms:play-services:+'
compile files('libs/dagger-1.2.2.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/support-v4-25.1.0.jar')
}
任何帮助请
尝试更换
compile files('libs/dagger-1.2.2.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/support-v4-25.1.0.jar')
至
compile fileTree(dir: 'libs', include: ['*.jar'])
在项目中包含jar库文件。
最好您可以使用gradle依赖项功能在您的项目中添加库。 例
compile 'com.android.support:support-v4:25.1.0'
它将自动将所需的库下载到项目中。 您无需手动下载jar文件并将其添加到项目中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.