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.
2 回答
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.
And that's it, after in your classes you may use this library.
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.