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

Could not be able to use library #45

Open
siddhpuraamitr opened this issue Jan 25, 2018 · 2 comments
Open

Could not be able to use library #45

siddhpuraamitr opened this issue Jan 25, 2018 · 2 comments
Labels

Comments

@siddhpuraamitr
Copy link

I have used below code to my app/gradle file

buildscript {
  dependencies {
    classpath 'com.orhanobut.tracklytics:tracklytics-plugin:2.0.0'
  }
}

apply plugin: 'com.android.application'
apply plugin: 'com.orhanobut.tracklytics' 

but .I am getting below error

Error:Could not find com.orhanobut.tracklytics:tracklytics-plugin:2.0.0.
Searched in the following locations:
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/orhanobut/tracklytics/tracklytics-plugin/2.0.0/tracklytics-plugin-2.0.0.pom
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/orhanobut/tracklytics/tracklytics-plugin/2.0.0/tracklytics-plugin-2.0.0.jar
Required by:
project :app

@orhanobut
Copy link
Owner

Ohh, let me check the issue. Thanks for the report.

@orhanobut orhanobut added the bug label Apr 3, 2018
@orhanobut
Copy link
Owner

I think you are missing repositories section. Can you confirm that you have all repositories are declared?

buildscript {
  repositories {
    jcenter()
    // other repositories
  }
  dependencies {
    classpath 'com.orhanobut.tracklytics:tracklytics-plugin:2.0.0'
  }
}

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

No branches or pull requests

2 participants