tracklytics icon indicating copy to clipboard operation
tracklytics copied to clipboard

Could not be able to use library

Open siddhpuraamitr opened this issue 7 years ago • 2 comments

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

siddhpuraamitr avatar Jan 25 '18 15:01 siddhpuraamitr

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

orhanobut avatar Apr 03 '18 06:04 orhanobut

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

orhanobut avatar Apr 07 '18 02:04 orhanobut