android - Declare local jar file as a transitive dependency of a library project -



android - Declare local jar file as a transitive dependency of a library project -

i have android app (app1) depends on library project (lib1). library project has several remote dependencies (e.g. guava, android back upwards library, etc) , 2 local dependencies, jar files stored in lib1/libs/.

this how dependencies section of build.gradle of lib1 looks like:

dependencies { compile filetree(dir: 'libs', include: '*.jar') compile 'com.android.support:support-v4:20.0.+' compile 'com.google.guava:guava:r08' }

if compile library (i.e. running gradle assemble on lib1/ folder) compiles correctly when add together library dependency of app1 gradle complains that cannot find 2 jars in libs/ folder of lib1.

this build.gradle of app1:

dependencies { compile project(':lib1') compile 'org.apache.james:apache-mime4j-core:0.7.2' compile 'org.apache.jackrabbit:jackrabbit-webdav:2.3.6' ... }

is there way tell gradle if library depends on local jar files projects depend on library should include them dependencies? remote dependencies work fine not when have jar files in libs/.

android gradle android-gradle

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -