Ok, I've been trying to get this to work, and haven't had much luck. I keep
getting Configuration with name 'default' not found.
So I've got a few libraries, I'll list what I have right now:
Library A
Library B -> depends on Library A, and has an imported module. I'm getting
the above error in this library project. I just created a new project, and
added the dependencies.
gradle.settings file:
include ':app'
include ':LibraryA'
include ':BModule1'
project(':LibraryA').projectDir=new File('path/to/librarya')
Then in the :app build.gradle dependencies section:
compile project(':BModule1')
compile project(':LibraryA')
Library C -> depends on Library A, and depends on google play services.
This would be setup similar to Library B, only with the google play
services dependency, instead of the module. I haven't set this up until I
get Lib B working.
Project
I have different flavors which will use either Lib B, C. (Which as I
understand it, would also give all flavors access to Lib A). I think I got
how to get this one setup how I need it, I just need to get the other
libraries to build properly.
Thanks for any insight.
On Thursday, September 18, 2014 12:51:09 PM UTC-4, sbarta wrote:
>
> Yes, you can do it. The general approach is to put the source library
> someplace convenient to all the projects using it, getting it to build
> independenly under Gradle, and then in projects that use it, add a module
> and point the module to the directory where the module lives. You can do it
> in settings.gradle like this:
>
> include ':libraryName'
> project(':libraryName').projectDir=new File('/path/to/library')
>
> On Thu, Sep 18, 2014 at 9:46 AM, Ryan Bis <[email protected] <javascript:>
> > wrote:
>
>> So when you import a source library, it seems to copy that library's
>> contents into the current project.
>>
>> I have a library that is used with several different projects. This
>> library has it's own repo (which is separate from the project's repo).
>>
>> So, as it seems AS copies the library into the project, what happens when
>> that library's repo gets updated? Does this mean I have to copy these
>> changes throughout all of my projects? Is there an easier way to set this
>> up, so that I don't have to manually edit the library in every project that
>> it's in?
>>
>> Thanks,
>> Ryan
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.