SmileyRating icon indicating copy to clipboard operation
SmileyRating copied to clipboard

Could not find method compile() for arguments [com.github.sujithkanna:smileyrating:2.0.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Open Umesh-01 opened this issue 3 years ago • 3 comments

Description

I am getting this error during gradle build process...

Could not find method compile() for arguments [com.github.sujithkanna:smileyrating:2.0.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Screenshot

image

@sujithkanna can you help me out??

Umesh-01 avatar Sep 28 '21 07:09 Umesh-01

you probably remove the jcenter from your repositories. Until the author moves the library to mavenCentral, we can use the following code:

allprojects { repositories { // ... jcenter() { content { includeModule("com.github.sujithkanna", "smileyrating") } } } }

meliksahcakirr avatar Nov 09 '21 23:11 meliksahcakirr

just use implementation instead of compile compile method is no longer available

kaliprasad24 avatar Mar 04 '22 19:03 kaliprasad24