1

I have created an Android library and uploaded that to GitHub and using the same using jitpack.io. Now I created a modulelibrary for GPS location. Untill and unless I add the GPSlibrary it works fine. Once I add the Gps library in gradle file. The Jitpack library shows error.

What might I be missing/ doing wrong?

App gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
    applicationId "com.example.ari"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.github.Aritra1704:UtilitiesJitPackLib:1.03' --> My jitpacklibrary
compile 'com.afollestad.material-dialogs:core:0.8.5.9'
compile 'com.google.android.gms:play-services:9.0.1'
compile 'com.google.android.gms:play-services-ads:9.0.1'
compile 'com.google.android.gms:play-services-auth:9.0.1'
compile 'com.google.android.gms:play-services-gcm:9.0.1'
compile project(':gpsutilities') --> My GPS library
}
Ari
  • 1,296
  • 1
  • 18
  • 36
  • Whatever files and methods I have used in the activities, Its not importing from my jitpack library. I do need my jitpack library the gps library also, so I added in gpslibrary too. Is it possible its conflicting since two times imported in the same project? – Ari May 31 '16 at 15:06
  • this is a compile errors? am I right? – Sergey Shustikov May 31 '16 at 15:10
  • Yes. kinda. resolved it, added my answer too. Sorry for the trouble. Thanks anyways. – Ari May 31 '16 at 15:13

1 Answers1

1

Sorry, my bad. But I did learn though one day lost for this.

Since I need to use my Jitpack library in my gpslibrary too, so I added the same link in gps library too. Since its added twice, most probably its conflicting.

Still if any one faces the same problem, do not add the same library in the app gradle as well as your module library. Only adding to module library will do.

Ari
  • 1,296
  • 1
  • 18
  • 36