我拿起別人的項目,當我問到運行在我的AVD項目,它會彈出我的錯誤:執行失敗的任務:應用程序:compileDebugJavaWithJavac
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
這裏是我的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId 'ca.gggolf.aminutegolf'
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
}
我不知道該怎麼辦..其他一切正常,應用程序在幾年前第一次製作時就工作了。
謝謝
是最初爲Eclipse編寫的項目嗎?你說這已經過了幾年了,這就是我問的原因。 – emerssso
是的,這是.... – dequec64
請添加你的'build.gradle'並告訴我你正在使用的Android Studio的版本 – piotrek1543