Include dependency from Maven local repository on Android Studio Gradle -


i think i'm stupid or i'm missing -hope latter- can't import dependency.

i have repository in ~/.m2/repository , inside directory can see deploy.

the maven setting.xml has

<localrepository>${user.home}/.m2/repository</localrepository> 

here gradle file:

dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile project(':lib_facebook') compile project(':lib_dslrdashboard') apt "org.androidannotations:androidannotations:3.2" compile 'org.androidannotations:androidannotations-api:3.2' compile 'de.livereach:rpc-objects-android:1.0.0'//this local dependency compile 'com.android.support:appcompat-v7:22.0.0' compile 'org.slf4j:slf4j-android:1.6.1-rc1' compile 'org.springframework.android:spring-android-rest-template:1.0.1.release' compile 'com.fasterxml.jackson.core:jackson-databind:2.3.2' compile 'de.keyboardsurfer.android.widget:crouton:1.8.5@aar' compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3' compile 'com.github.castorflex.smoothprogressbar:library:1.1.0' compile('com.crashlytics.sdk.android:crashlytics:2.2.3@aar') {     transitive = true; } compile('com.twitter.sdk.android:twitter:1.4.0@aar') {     transitive = true; } 

}

i'm on mac osx 10.10

thanks in advance!

gradle doesn't @ maven local repository default. need explicitly ask to:

allprojects {     repositories {         jcenter()         mavenlocal()    // add line     } } 

gradle dsl docs mavenlocal(): docs.gradle.org/…


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -