Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execution failed for task :app:compileDebugJavaWithJavac

I picked up someone else's project and when I asked AS to run the project on my AVD, it pops me an error:

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Here is my 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'
}

I don't know what to do.. Everything else works fine and the app was working a couple of years ago when it was first made.

like image 280
dequec64 Avatar asked Jan 06 '16 19:01

dequec64


1 Answers

Check your location address of exist project. if you use special character like :

( / | \ + = * ... )

In folder and sub-folders name, you should change it and check it out.

I changed my folder name from "UI/UX" to "UiUx" and its done :)

like image 78
Hessam Rastegari Avatar answered Sep 20 '22 10:09

Hessam Rastegari