Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I'm working on an Android application with databinding but I've always next error


Error: Package my.package.databinding does not exist.

Here is my build.gradle on project level:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
    }
}
allprojects {
    repositories {
        jcenter()
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}

I've also enabled binding in the build.gradle file on module level.

Now my question is, why occurs this error and how could I solve it?



What I have tried:

I've tried to search on internet but no general solutions found for the problem I've got.

Posted
Updated 5-Nov-16 21:51pm
v3
Comments
Richard MacCutchan 6-Nov-16 8:27am    
The message is telling you what the problem is. We have no idea where you are making references to that package.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900