android - Gradle looking for aar in wrong project's lib folder -
i have android application made of multiple projects. 1 of projects app project extends application object.
inside build.gradle app project, add other projects dependencies.
i've created new module house sdk (aar) want use. i've added app project's build.gradle.
compile project(':newmodule-thesdk')
inside libs folder of newmodule-thesdk, have added aar file. we'll call thesdk.aar.
repositories { flatdir { dirs 'libs' } } dependencies { compile(name:'thesdk-1.0', ext:'aar') }
when attempt sync gradle, sync fails because thesdk-1.0 not exist in libs folder of app project. why looking there? why not finding in newmodule-thesdk project?
it appears solving problem required me following in app project's build.gradle.
repositories { flatdir { dirs project(':newmodule-thesdk').file('libs') } }
Comments
Post a Comment