Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to resolve: com.squareup.leakcanary:leakcanary #60

Closed
ruijun opened this issue May 12, 2015 · 10 comments
Closed

Failed to resolve: com.squareup.leakcanary:leakcanary #60

ruijun opened this issue May 12, 2015 · 10 comments

Comments

@ruijun
Copy link

ruijun commented May 12, 2015

When I use leakcanaryin my project, i get these errors:

Error:(19, 20) Failed to resolve: com.squareup.leakcanary:leakcanary-android-no-op:1.3
Error:(18, 18) Failed to resolve: com.squareup.leakcanary:leakcanary-android:1.3

How to solve these errors?

@pyricau
Copy link
Member

pyricau commented May 12, 2015

Clean your project, then build. Make sure that IJ is not in offline mode. Also, see #9.

@pyricau pyricau closed this as completed May 12, 2015
@ruijun
Copy link
Author

ruijun commented May 18, 2015

@pyricau Hello, I clean my project, and re-build.The IJ is not in offline mode.But I get the same errors:

Error:(19, 20) Failed to resolve: com.squareup.leakcanary:leakcanary-android-no-op:1.3
Error:(18, 18) Failed to resolve: com.squareup.leakcanary:leakcanary-android:1.3

@pyricau
Copy link
Member

pyricau commented May 18, 2015

Try 1.3.1 and also see #117

@chandas
Copy link

chandas commented Nov 25, 2015

I am using Android Studio and getting the following errors in app build.gradle
Error:(25, 18) Failed to resolve: com.squareup.leakcanary:leakcanary-android:1.3.1
Error:(26, 20) Failed to resolve: com.squareup.leakcanary:leakcanary-android-no-op:1.3.1

I have already cleaned and rebuild the project.

I have not added any leakcanary project to my project. Do i need to import the leakcanary project ?

@IgorGanapolsky
Copy link

I am having the same problem right now in Android Studio 2.0 beta6. I've tried this in gradle:
final LEAKCANARY_VERSION = '1.4-beta1'

debugCompile "com.squareup.leakcanary:${LEAKCANARY_VERSION}" releaseCompile "com.squareup.leakcanary:leakcanary-android-no-op:${LEAKCANARY_VERSION}"

Getting this error:

Error:Failed to resolve: com.squareup.leakcanary:1.4-beta1:

@IgorGanapolsky
Copy link

Found the solution, need to use this:
debugCompile "com.squareup.leakcanary:leakcanary-android:${LEAK_CANARY_VERSION}"
instead of this:
debugCompile "com.squareup.leakcanary:${LEAK_CANARY_VERSION}"

@pt321
Copy link

pt321 commented May 22, 2016

IgorGanapolsky where did you place final LEAKCANARY_VERSION = '1.4-beta1' in the gradle file

@IgorGanapolsky
Copy link

@pt321 it's a declaration variable in groovy. You can place it anywhere in the cradle file.

@Dimrix
Copy link

Dimrix commented Sep 24, 2017

i"m fighting to run this project ..

using studio v3 beta 6
dev branch
biuld variant devDebug

Shuttle/app/build.gradle
Warning:One of the plugins you are using supports Java 8 language features. To try the support built into the Android plugin, remove the following from your build.gradle:
apply plugin: 'me.tatarka.retrolambda'
To learn more, go to https://d.android.com/r/tools/java-8-support-message.html
Error:Failed to resolve: leakcanary-android
Open File
Error:Failed to resolve: recyclerview-fastscroll
Open File

@NightlyNexus
Copy link
Contributor

@Dimrix Android Gradle Plugin 3's Java 8 language desuguaring won't work with Retrolambda. The error message tells you what to do: simply remove the Retrolambda plugin. (I don't know what this has to do with Leak Canary or this issue thread, though.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants