Skip to content
This repository was archived by the owner on Apr 19, 2018. It is now read-only.
This repository was archived by the owner on Apr 19, 2018. It is now read-only.

Nested support-library dependency in travis #14

@gabrielemariotti

Description

@gabrielemariotti

Honestly, I don't know if it can be considered an issue.
My library doesn't require the support-library, but uses a dependency (Etsy staggered grid) that requires it.

Locally I can build the lib without any problems.
When I build in travis,without calling an explicit sdk-update for the Support library repository, I've a failed build.

> Could not find any version that matches com.android.support:support-v4:19.0.+.

My dependencies:

dependencies {    
    compile project(':library')    
    compile 'com.etsy.android.grid:library:1.0.4'
}

Log on travis:

Android SDK not found. Downloading...
SDK extracted at '/home/travis/.android-sdk'. Writing to local.properties.
Build tools 19.0.3 missing. Downloading....
Compilation API android-19 missing. Downloading...
Download http://repo1.maven.org/maven2/com/etsy/android/grid/library/1.0.4/library-1.0.4.pom
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
FAILURE: Build failed with an exception.
* Where:
Build file '/home/travis/build/gabrielemariotti/cardslib/build.gradle' line: 31
* What went wrong:
A problem occurred evaluating root project 'cardslib'.
> A problem occurred configuring project ':library-extra'.
   > Could not resolve all dependencies for configuration ':library-extra:_debugCompile'.
      > Could not find any version that matches com.android.support:support-v4:19.0.+.
        Required by:
            com.github.gabrielemariotti.cards:library-extra:1.5.1-SNAPSHOT > com.etsy.android.grid:library:1.0.4
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED

Adding in travis.yml the sdk update for support library/repository it can work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions