-1

I am getting the following error while executing my code.

Error: Could not find method debugdcompile() for arguments [com.squareup.leakcanary:leakcanary-android:1.5] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Arpit Prajapati
  • 367
  • 2
  • 16
royalapp
  • 173
  • 1
  • 3
  • 7

2 Answers2

1

You wrote debugdcompile, which is wrong. It is supposed to be debugCompile. The C has to be capitalized and the d isn't even supposed to be in there

Zoe
  • 27,060
  • 21
  • 118
  • 148
0

in app.gradle

debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'

Add mavenCentral() along with jcenter and to allprojects section in build.gradle .

That May Help in fixing the Issue.

Tomin B Azhakathu
  • 2,656
  • 1
  • 19
  • 28