How to build android app with Gradle with not the latest version of maven artifact? -
i'm having app built gradle , requires maven module fs
. android app requires version 1.1
(exists in local maven repo) it's not latest version of module in local maven repository (version 1.2
in local maven repo too):
compile 'name.antonsmirnov.fs:fs:1.1'
when trying build android app i'm getting error:
executing tasks: [clean, :app:compiledebugsources, :app:compiledebugandroidtestsources] configuration on demand incubating feature. failure: build failed exception. * went wrong: problem occurred configuring project ':app'. > not resolve dependencies configuration ':app:_debugcompile'. > not resolve name.antonsmirnov.fs:fs:1.1. required by: ad_gradle:app:unspecified > inconsistent module metadata found. descriptor: name.antonsmirnov.fs:fs:1.2 errors: bad version: expected='1.1' found='1.2' > not resolve name.antonsmirnov.fs:dropbox:1.1.
how can force gradle use not latest version of maven module (artifact)?
ps. 1 more question: if delete folder 1.2
local maven repo not (so gradle cached 1.2 available , not compile after removal).
pps. if use "+" version make gradle latest available, can't resolve it:
compile "name.antonsmirnov.fs:fs:+"
error:
* went wrong: problem occurred configuring project ':app'. > not resolve dependencies configuration ':app:_debugcompile'. > not resolve name.antonsmirnov.fs:fs:+. required by: ad_gradle:app:unspecified > inconsistent module metadata found. descriptor: name.antonsmirnov.fs:fs:1.2 errors: bad version: expected='1.1' found='1.2'
check gradle config app specify repositories used maven artifacts. depending on configuration, may in top level build.gradle
file or 1 project (typically app/build.gradle
.) you'll need add mavenlocal
in order pick local maven artifacts:
repositories { mavenlocal() }
Comments
Post a Comment