signalapp / Flock

Private contact and calendar sync for Android.
https://signal.org/blog/flock
358 stars 80 forks source link

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

Open chifflier opened 9 years ago

chifflier commented 9 years ago

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

joeykrim commented 9 years ago

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.

rhodey commented 9 years ago

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.

ghost commented 9 years ago

how do i exlude the nonplay ?

patcon commented 9 years ago

@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 commented 9 years ago

Submitted a PR