I have offline maven repo with my organization. I am trying to use com.google.android.gms:play-services-analytics:17.0.0. I take this repo from maven and uploaded it into the our local repo.
I am not able to download the submodule.
I have added an implementation in my android project build.gradle file.
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.google.android.gms:play-services-analytics:17.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
}
I am getting an error as below.
Could not find any matches for com.google.android.gms:play-services-analytics-impl:[17.0.0] as no versions of com.google.android.gms:play-services-analytics-impl are available.
I have checked com.google.android.gms:play-services-analytics-impl with version 17.0.0 is available in my local repo.
Now, here the question is what is the meaning of the square bracket which I am getting in error with version.?
Is that something I missed here to upload?
It seems that
play-services-analyticsdepends onplay-services-analytics-implto work. If you want to work with your offline repository, you should as well add dependencies ofplay-services-analyticsto your own repository. Check the pom.xml file ofplay-services-analyticsto see what dependencies are required.