@aar 'is not a valid maven coordinate

Android studio updated my gradle wrapper to gradle -4.1-milestone-1-all and it seems to have broken the build. Getting the following error.
Gradle sync failed: java.lang.AssertionError: 'com.spotify.sdk:spotify-player-24-noconnect-2.20b:@aar' is not a valid maven coordinate. 

      

The dependency is in my gradle script as an implementation and arr is in my libs folder.

dependencies {
     implementation 'com.spotify.sdk:spotify-player-24-noconnect-2.20b@aar'
} 

      

Does anyone else encounter this error?

+3


source to share


2 answers


I am facing the same problem this morning. There's a Github issue that throws more light on the situation. It seems to be a bug of Android Studio.



+3


source


IMAGE studio update 3.0 canary 6 solved it.

OLD: So after updating canary, I ran into the same problem (maybe as yours). I had a file aar

in a directory libs

added as a dependency.

this is what it was before

compile(name: 'materialbarcodescanner-release', ext: 'aar') {
    exclude group: 'com.android.support', module: 'appcompat-v7'
}

      



this is what solved it

 compile('com.edwardvanraak:materialbarcodescanner-release@aar') {
    exclude group: 'com.android.support', module: 'appcompat-v7'
}

      

basically added '{packagename}: {filename} @arr' instead of the usual convention.

+1


source







All Articles