orhanobut / tracklytics

✔️ Annotation based tracking handler with aspect oriented programming
Apache License 2.0
429 stars 45 forks source link

Could not be able to use library #45

Open siddhpuraamitr opened 6 years ago

siddhpuraamitr commented 6 years ago

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 commented 6 years ago

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

orhanobut commented 6 years ago

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'
  }
}