liujoshua
(Joshua Liu)
July 21, 2018, 9:47am
1
Hello,
I have hit a dead end toubleshooting a build issue that occurs on Travis and a Docker image we created to simulate Travis.
Gradle Scan
Travis Build
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
> Could not resolve project :mobile-ui.
Required by:
project :app
> Unable to find a matching configuration of project :mobile-ui: None of the consumable configurations have attributes.
> Could not resolve project :data.
Required by:
project :app
project :app > project :motor-control-module
> Unable to find a matching configuration of project :data: None of the consumable configurations have attributes.
> Could not resolve project :sageresearch-app-sdk.
Required by:
project :app > project :motor-control-module > project :sageresearch-mpower
> Unable to find a matching configuration of project :sageresearch-app-sdk: None of the consumable configurations have attributes.
These missing modules are declared in settings.gradle
include ':backbone'
project(':backbone').projectDir = file('BridgeAndroidSdk/ResearchStack/backbone')
include ':domain', ':data', ':mobile-ui', ':presentation'
project(':domain').projectDir = file('BridgeAndroidSdk/SageResearch-Android/domain')
project(':data').projectDir = file('BridgeAndroidSdk/SageResearch-Android/data')
project(':mobile-ui').projectDir = file('BridgeAndroidSdk/SageResearch-Android/mobile-ui')
project(':presentation').projectDir = file('BridgeAndroidSdk/SageResearch-Android/presentation')
include ':sageresearch-app-sdk', ':researchstack-sdk', ':android-sdk', ':test-utils'
project(':sageresearch-app-sdk').projectDir = file('BridgeAndroidSdk/sageresearch-app-sdk')
project(':researchstack-sdk').projectDir = file('BridgeAndroidSdk/researchstack-sdk')
project(':android-sdk').projectDir = file('BridgeAndroidSdk/android-sdk')
project(':test-utils').projectDir = file('BridgeAndroidSdk/test-utils')
include ':app', ':motor-control-module', ':sageresearch-mpower'
As far as I can tell, the project structure is the same as I used in several other projects (pulling in BridgeAndroidSDK as a git submodule, and BridgeAndroidSDK in turn pulling in submodules).
Any tips on how to continue investigating?
liujoshua
(Joshua Liu)
July 21, 2018, 10:16am
2
Just wanted to add this portion of the output from ./gradlew :app:dependencies
debugCompileClasspath - Resolved configuration for compilation for variant: debug
+--- com.android.support:multidex:1.0.2 -> 1.0.3
+--- com.android.support:multidex:1.0.3
+--- com.jakewharton:butterknife:8.8.1
| +--- com.jakewharton:butterknife-annotations:8.8.1
| | \--- com.android.support:support-annotations:25.3.0 -> 27.1.1
| +--- com.android.support:support-annotations:25.3.0 -> 27.1.1
| \--- com.android.support:support-compat:25.3.0 -> 27.1.1
| +--- com.android.support:support-annotations:27.1.1
| \--- android.arch.lifecycle:runtime:1.1.0 -> 1.1.1
| +--- android.arch.lifecycle:common:1.1.1
| | \--- com.android.support:support-annotations:26.1.0 -> 27.1.1
| +--- android.arch.core:common:1.1.1
| | \--- com.android.support:support-annotations:26.1.0 -> 27.1.1
| \--- com.android.support:support-annotations:26.1.0 -> 27.1.1
+--- org.slf4j:slf4j-api:1.7.21
+--- com.github.tony19:logback-android-core:1.1.1-6
+--- com.github.tony19:logback-android-classic:1.1.1-6
| +--- com.github.tony19:logback-android-core:1.1.1-6
| \--- com.github.tony19:apktool-lib:1.4.4-3
+--- com.google.code.gson:gson:2.8.2
+--- com.ryanharter.auto.value:auto-value-parcel-adapter:0.2.6
+--- com.ryanharter.auto.value:auto-value-gson-annotations:0.7.0
+--- project :mobile-ui FAILED
+--- project :data FAILED
+--- project :motor-control-module
| \--- project :sageresearch-mpower
| \--- project :sageresearch-app-sdk FAILED
+--- android.arch.lifecycle:extensions:1.1.1
| +--- android.arch.lifecycle:runtime:1.1.1 (*)
| +--- android.arch.core:common:1.1.1 (*)
| +--- android.arch.core:runtime:1.1.1
| | +--- com.android.support:support-annotations:26.1.0 -> 27.1.1
| | \--- android.arch.core:common:1.1.1 (*)
| +--- com.android.support:support-fragment:26.1.0 -> 27.1.1
| | +--- com.android.support:support-compat:27.1.1 (*)
| | +--- com.android.support:support-core-ui:27.1.1
| | | +--- com.android.support:support-annotations:27.1.1
| | | +--- com.android.support:support-compat:27.1.1 (*)
| | | \--- com.android.support:support-core-utils:27.1.1
| | | +--- com.android.support:support-annotations:27.1.1
| | | \--- com.android.support:support-compat:27.1.1 (*)
| | +--- com.android.support:support-core-utils:27.1.1 (*)
| | +--- com.android.support:support-annotations:27.1.1
| | +--- android.arch.lifecycle:livedata-core:1.1.0 -> 1.1.1
| | | +--- android.arch.lifecycle:common:1.1.1 (*)
| | | +--- android.arch.core:common:1.1.1 (*)
| | | \--- android.arch.core:runtime:1.1.1 (*)
| | \--- android.arch.lifecycle:viewmodel:1.1.0 -> 1.1.1
| | \--- com.android.support:support-annotations:26.1.0 -> 27.1.1
| +--- android.arch.lifecycle:common:1.1.1 (*)
| +--- android.arch.lifecycle:livedata:1.1.1
| | +--- android.arch.core:runtime:1.1.1 (*)
| | +--- android.arch.lifecycle:livedata-core:1.1.1 (*)
| | \--- android.arch.core:common:1.1.1 (*)
| \--- android.arch.lifecycle:viewmodel:1.1.1 (*)
+--- com.google.code.findbugs:jsr305:2.0.1
+--- com.android.support:appcompat-v7:27.1.1
| +--- com.android.support:support-annotations:27.1.1
| +--- com.android.support:support-core-utils:27.1.1 (*)
| +--- com.android.support:support-fragment:27.1.1 (*)
| +--- com.android.support:support-vector-drawable:27.1.1
| | +--- com.android.support:support-annotations:27.1.1
| | \--- com.android.support:support-compat:27.1.1 (*)
| \--- com.android.support:animated-vector-drawable:27.1.1
| +--- com.android.support:support-vector-drawable:27.1.1 (*)
| \--- com.android.support:support-core-ui:27.1.1 (*)
+--- com.google.dagger:dagger-android:2.15
| +--- com.google.dagger:dagger:2.15
| | \--- javax.inject:javax.inject:1
| +--- com.android.support:support-annotations:25.0.0 -> 27.1.1
| \--- javax.inject:javax.inject:1
+--- com.google.dagger:dagger-android-support:2.15
| +--- com.google.dagger:dagger:2.15 (*)
| +--- com.google.dagger:dagger-android:2.15 (*)
| +--- com.android.support:appcompat-v7:25.0.0 -> 27.1.1 (*)
| +--- com.android.support:support-annotations:25.0.0 -> 27.1.1
| +--- com.android.support:support-fragment:25.0.0 -> 27.1.1 (*)
| \--- javax.inject:javax.inject:1
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.41
| \--- org.jetbrains.kotlin:kotlin-stdlib:1.2.41
| \--- org.jetbrains:annotations:13.0
+--- com.android.support.constraint:constraint-layout:1.1.1
| \--- com.android.support.constraint:constraint-layout-solver:1.1.1
\--- nl.littlerobots.rxlint:rxlint:1.6.1
Note that :mobile-ui, :data, and :sageresearch-app-sdk simply say FAILED
liujoshua
(Joshua Liu)
July 24, 2018, 9:29pm
3
Found the issue. Case-sensitive file system and incorrect path in settings.gradle