2020年12月22日星期二

Installing google maps services java in intellij gradle

I am trying to install the google maps services for java listed here https://github.com/googlemaps/google-maps-services-java.

I am using Gradle in IntelliJ and I have tried to use the installation instructions I found for Gradle on the gms github which is the following

implementation 'com.google.maps:google-maps-services:0.15.1'

implementation 'org.slf4j:slf4j-simple:1.7.25

However, when I do this it says that it cannot find com.google.maps:google-maps-services:0.15.1 and that I need to declare a repo containing the artifact.

Even when I try to add a maven repo like this

maven {url "https://github.com/googlemaps/google-maps-services-java.git"}

It still doesn't work. Has anyone installed this library before using Gradle and if so what changes do I need to make to the Gradle script?

https://stackoverflow.com/questions/65415671/installing-google-maps-services-java-in-intellij-gradle December 23, 2020 at 04:51AM

没有评论:

发表评论