When updating Android studio to the new version 3.1.1 it has indicated me that I should change things in the dependencies compile by implementation I have uploaded the compilation version to 27 ...
But gradle when making build, it returns the error:
Android dependency 'com.android.support.constraint: constraint-layout' has different version for the compile (1.0.2) and runtime (1.1.0) classpath You should manually set the same version via DependencyResolution
I have rebooted the cache with (File -> Invalidate Caches/Restart -> Invalidate and Restart). but it still gives the error
Of all the modules I use, only one uses constraint-layout and I have it in
implementation 'com.android.support.constraint:constraint-layout:1.1.0' in principle should be well established.
Searching for SO I found the recommendation to use api before implementation
as follows
api 'com.android.support.constraint:constraint-layout:1.1.0'
And it has been solved mysteriously ...
My doubt is
What is the difference in using implementation or api ?