Recently I’ve been trying to get source dependencies to work for our projects. After getting SSH to work for our private GitHub library repositories, I’m running into the following error during syncing. It clones the dependency sources correctly but it cannot sync or compile. I’ve also tried to get this working with public library projects on GitHub like Lottie-android, which gives the same issues. I’ve tried with Gradle version 5.4.2 up to 5.6.2. Plugin version 3.2.0 to 3.5.0. Using AS 3.5, but same issues when trying to build from command line.
Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Problems reading data from Binary store in /private/var/folders/1s/9_kqj3dd4tl5ht_kpn9cxxp4755__y/T/gradle2221764272445267315.bin offset 47487 exists? true
I’m defining the repositories in settings.gradle
like this:
sourceControl {
gitRepository("https://github.com/company/utils.git") {
producesModule("me.company.android:utils")
}
}
And in build.gradle
like:
implementation ('me.company.android:utils:v1.0.0'){
version {
branch = 'master'
}
}
I’ve created a new release with tag on GitHub on the master branch. But I’m often seeing this message as well:
Git repository at ssh://git@github.com/company/utils.git did not contain a project publishing the specified dependency.