android - Gradle dependencies update -


One advantage of using griddle in Android studios is that it helps in dependency management so if I use my Build.gradle file, then how will I force it to update the dependency version when a higher version is available?

Some dependencies in my build.gradle are specified as

  dependency {compile project (': facebookSDK') compile files ('libs / picasso-2.1. 1.jar files) ('Libs / crouton-1.8.1.jar')}    

The advantage of the use of griddle in an Android studio is that it helps in dependency management.

The way you are using it.

So if I used a special version of a library in my build.gradle file, how do I force it to update the dependency version after having a higher version available?

In your case, you download a new jar, put them in lbs / , and match your build.gradle Update.

A favorite is the approach to removing those jars and for changing your two files details that depend on the reserves of Maven Central or any other artwork Pull down You can find the appropriate statement for popular open source libraries through the site.

In your case, you will use it:

  compile 'com.squareup.picasso: Picasso: 2.3.3' compilation 'd. Keyboardboard Android Witatt: Krutun: 1.8.5 '  

They will also need to close the repositories to stop your dependency a colleague As:

  repository {mavenCentral ()}   

It may already exist.

These compile statements still pin you in a specific version of those libraries, but going to a newer version updates the compile statement There will be a simple case to do, and Gradle will pull down the new reliance on your next build.

If you want, you can change the location number of the wildcard (for example, 2.3. + ). This will allow Gradle to automatically update the library's new patchlay, in this case. Some developers do not approve of this approach, as long as it is convenient, it reduces your ability to reproduce your potential (e.g., you need to compile some old branch of your code again, and now You do not know which edition artifact you were using back).

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -