I've run into build failures after clearing home a...
# gradle
k
I've run into build failures after clearing home and project gradle caches. This is after reseting all changes back to a working state. Specifically trying to resolve a dependency. Gradle is searching for a library as a plugin. I've done several "deep cleans", fresh repository, fresh/updated Android Studio. Any thoughts?
g
Could you show an error message? What does "searching for a library as a plugin"
k
> Failed to transform frag-nav-3.2.0.jar (com.ncapdevi:frag-nav:3.2.0) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not find frag-nav-3.2.0.jar (com.ncapdevi:frag-nav:3.2.0).
Searched in the following locations:
<https://plugins.gradle.org/m2/com/ncapdevi/frag-nav/3.2.0/frag-nav-3.2.0.jar>
g
frag-nav is not available on mavenCentral, this is probably you have this issue
or some issue with your repositories, looks that it uses gradlePlugins() repo
we also use this lib and we have to republish it to own repo
k
gradlePluginPortal()? I am using it
It is published to own repo and repository w/ credentials are set. If I pull down same repo on another machine it works
g
just a guess, you can try to do ./gradlew assembleDebug --refresh-dependencies
if it will be the same issue, check where it actually failing, who is requesting it, you can also use gradle build scan for this
k
for posterity's sake; I did run
gradlew assemble --refresh-dependencies
however I was subsequently trying to build a debug variant. User error