Flock icon indicating copy to clipboard operation
Flock copied to clipboard

build failure: Could not find org.whispersystems.supplychain:libsupplychain:1.0

Open chifflier opened this issue 9 years ago • 5 comments

Hi,

Build of current master (2015-04-09, ./gradlew build) branch fails with error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':flock'.
> Could not resolve all dependencies for configuration ':flock:_nonplayDebugCompile'.
   > Could not find org.whispersystems.supplychain:libsupplychain:1.0.

Where can I find this lib ? Or, is there any missing instruction on how to build ?

Thanks

chifflier avatar Apr 09 '15 11:04 chifflier

Encountering the same issue when following the build instructions, which relies on the current master branch.

The specific error line that references the missing dependency is line 59 of build.gradle

As the dependency only seems required for the Non Google Play build, commenting out the nonplay references on line 19 and on lines 59 to 61 allows the Google Play version to build.

Seems the libsupplychain dependency came in this commit https://github.com/WhisperSystems/Flock/commit/b25ab2e878a91245894162ee35941d8186dc7c6b on Feb 11th 2015, few months back.

joeykrim avatar May 01 '15 02:05 joeykrim

the build instructions should be updated to exclude the nonplay build flavor from the process, thanks for the info and sorry this has been a issue for so long, when I first skimmed over this issue I had incorrectly assumed it was only a problem for people specifically trying the nonplay build.

rhodey avatar May 11 '15 18:05 rhodey

how do i exlude the nonplay ?

ghost avatar May 11 '15 19:05 ghost

@SudoAccess Ensure this exists at the top of flock/build.gradle:

apply plugin: 'com.android.application'
apply plugin: 'witness'

android {

    variantFilter { variant ->
        if(variant.getFlavors().get(0).name.equals('nonplay')) {
            variant.setIgnore(true);
        }   
    }   

    compileSdkVersion 21
    buildToolsVersion '21.1.2'
// snip

patcon avatar Jul 08 '15 15:07 patcon

Submitted a PR

patcon avatar Jul 08 '15 21:07 patcon