I cannot use HTTPBuilder though as it is not found in the external libraries. I checked my ~/.gradle/cache folder and it does have the following entries
You need to specify a root level repositories { } block. Just because the module is cached (likely by another build) does not mean the cached version will be used for this build if you haven’t defined a repository to get things from. Basically, if I tell my build to only use dependencies downloaded from repository A, it will not use one downloaded from repository B, as there is no guarantee they are the same. We refer to this as the cache being “repository-aware”. Logically, if I specify no repositories at all, no external dependencies can be resolved.
but when the plugin is applied I get an error saying
Error:Could not find org.codehaus.groovy.modules.http-builder:http-builder:0.7.2.
Searched in the following locations:
file:/Applications/Android Studio.app/Contents/gradle/m2repository/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.pom
file:/Applications/Android Studio.app/Contents/gradle/m2repository/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar
https://maven.fabric.io/public/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.pom
https://maven.fabric.io/public/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar
How can I include the repository in the generated pom?
Hy Mr. Mark, please I am new to android studio and I just created my first project but whenever I try to sync with gradle it takes alot of time and then later show error message "can’t download builder-4.0.0.jar. so I downloaded the jar file using browser but I don’t know the path to put the file. I searched for builder -4.0.0.pom and. I saw it located in folder that has a weird name and that makes it more confusing to me. Please do have any idea on what to do? Thank you