[英]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.