0

I don't know why couldn't i figure it out. I am trying to add the android_maps-utils library in the android studio.I have seen this link which was suggested by google developers blog.But i couldn't understand the way they suggested.

Can anyone give me step by step instruction to use android-maps-utils as library in Android Studio?? I have been stuck for two days. Thanks in advance.

4

2 回答 2

1

On that link with which suggested by google is everything how to include it. If you use Android Studio (as I saw in your tags to question):

add this line to your build.gradle

dependencies {
    compile 'com.google.maps.android:android-maps-utils:0.3+'
}

and in the right nop corner you will see appears text sync now, so press it. See attached picture. enter image description here

And that's it, after in your classes you may use this library.

于 2015-04-29T13:51:06.227 回答
1

Have you already fixed the more than one package name problem? If yes, omitted the followings.

I saw that in your "dependencies" element, you have compile project(':library') and compile('com.google.maps.android:android-maps-utils:0.3.4'). Is the :library the google maps utility library? If yes, then you add google maps utility dependency twice which leads to the problem.

于 2015-08-27T02:37:39.587 回答