Skip to content Skip to sidebar Skip to footer

Anroid Studio Error: Incremental Out Directory Should Be Set To Aar Output Directory

I have imported a github project : https://github.com/caarmen/poet-assistant to my Android Studio. When I click on 'Make Project' hammer icon, It gives the following error: Overal

Solution 1:

i have find the same error when i build an old project, and my Android Studio version is 3.5.2.

finally, i solve it, is about the databind.

you just to update the gradle, delete the annotationProcessor 'com.android.databinding:compiler:2.3.0'

update

...
android {
    ...
    dataBinding {
        enabled = true
    }    
}

dependencies {
    ...
    annotationProcessor 'com.android.databinding:compiler:2.3.0'
}

to

...
android {
    ...
    dataBinding {
        enabled = true
    }    
}

dependencies {
    ...
    //annotationProcessor 'com.android.databinding:compiler:2.3.0'
}

Solution 2:

It looks like you have some more going on but I was able to solve the overall error by commenting out the following.

//    dataBinding {
//        enabled = true
//    }

This may not be viable in all cases but in my case I was not actually using it.

AS -> 3.3.2
Kotlin -> 1.3.21
Gradle -> 3.3.2
Gradle Wrapper -> 4.10.1-all

Post a Comment for "Anroid Studio Error: Incremental Out Directory Should Be Set To Aar Output Directory"