android-gradle-pluginsugarorm

Build error while compling sugar ORM


I am trying to compile sugar ORM to my application.But it is showing this build error.

Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.github.satyan:sugar:1.4.

How can I resolve it?Did I miss any other thing to add in gradle?


Solution

  • You need to change your app module's build.gradle file from:

    implementation 'com.github.satyan:sugar:1.4'
    

    to

    implementation 'com.github.satyan:sugar:1.5'
    

    Note: You may be using compile instead. This is now deprecated.

    The current version can always be seen on the repo's page.