1

Hi All i m facing one of the errors while data binding in android

the following is showed as error while running of the code: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:kaptDebugKotlin'

This is shown as the error while ruining the project.

enter image description here

enter image description here

These are the details of my project i'm unable to understand what issue is my gradle code

apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt'

android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
    applicationId "com.snake.implimetations"
    minSdkVersion 16
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compileOptions {
    sourceCompatibility = '1.8'
    targetCompatibility = '1.8'
}

android {
    dataBinding {
        enabled = true
    }
}

}

dependencies {

def lifecycle_version = "1.+"

implementation fileTree(dir: 'libs', include: ['*.jar'])

//support
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

// database
implementation 'androidx.room:room-rxjava2:2.1.0'
kapt 'androidx.room:room-compiler:2.1.0'

// font
implementation "uk.co.chrisjenx:calligraphy:$rootProject.calligraphyVersion"

//viewModel and LiveData
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
kapt 'androidx.lifecycle:lifecycle-compiler:2.0.0'

// parser
implementation "com.google.code.gson:gson:$rootProject.gsonVersion"

// Dagger 2
implementation 'com.google.dagger:dagger-android-support:2.17'
implementation 'com.google.dagger:dagger:2.17'
kapt "com.google.dagger:dagger-compiler:2.17"
kapt "com.google.dagger:dagger-android-processor:2.17"

// network
implementation "com.amitshekhar.android:rx2-android-networking:$rootProject.rx2FastAndroidNetworking"

// reactive
implementation "io.reactivex.rxjava2:rxjava:$rootProject.rxjava2Version"
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"

//htttp
implementation('org.apache.httpcomponents:httpmime:4.3.6') {
    exclude module: 'httpclient'
}
implementation 'org.apache.httpcomponents:httpclient-android:4.3.5'


implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"


testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.2.0'

implementation 'com.google.android.material:material:1.0.0'
implementation 'org.jetbrains:annotations:15.0'

}

2
  • Possible duplicate of Execution failed for task ':app:kaptDebugKotlin' Commented Jul 15, 2019 at 22:32
  • @PascalMeunier Possibly the question is duplicate but still the other question too did not have the correct answer Commented Jul 16, 2019 at 17:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.