Hi I'm new to Android and I am doing my first steps. I;m trying to byild and App with google map and I need the Android Utility. But When I try to setup I follow the instructions from google map web site, https://developers.google.com/maps/documentation/android-sdk/utility/setup
But I receive the following error
I change the word compile to implementation and the error disappear is the solution?
Yes configuration "compile" has been deprecated and been replaced with "implementation". Sorry doesn't have enough reputations to add a comment :)
Related
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.
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.
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.
I'm writing an android app which uses offline maps.For this I'm using osmdroid, I've come across this link which refers to an update of osmdroid the osmbonuspack. Can you point me at some tutorials and sample codes besides those provided by the openstreetsmap so that I can get started?
Here is working link https://github.com/MKergall/osmbonuspack.
Please let me know if links are dead.
This implementation (app:Gradle) worked for me in Android Studio using SDK 29:
implementation 'com.github.MKergall.osmbonuspack:OSMBonusPack:v5.7'
You can find this MKergall's Maven repository
NOTE: you will have to comment out your previous osmdroid (mine was 4.3) jar implementation, because methods are duplicated.
I was trying to run a google map application, but when I include google-play-services-lib first, it shows like this
but after that when I recheck it shows
because of this my application is crashing could anyone possibly tell me what could be the scenario?
Try to put your Google Play Services library and your project folder in same drive and then import library from that drive after that clean your project.
Hope it will work for you.
Try to put your project and google play library in same folder. Remove that red color error library from android properties and add it again with new drive. May be it will work.
I am new to Android and want to embed Google Maps v2 to my application, but can anyone please tell me which dependencies should I install on phone or include to project?
Include Gradle dependency:
dependencies {
implementation 'com.google.android.gms:play-services-maps:16.1.0'
}
You may found Gradle, please helpful. Also, check out this page for Android APIs releases.
I assume you have already read https://developers.google.com/maps/documentation/android/ :-)
In short:
you need to download and install the Google Play service lib via SDK manager
create a project in Eclipse via "Create project from existing source code" and use the source code from "\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib"
add this project as dependency to your actual project via right click on your project -> properties -> android -> add project library
add the permissions as described in the link mentioned above
request an API key as pointed out in the link above as well
add a SupportedMapFragment to your layout
you need an active Google account on the device to will test your map (it will install the required dependencies on the device automatically then)
That's it :-)
Hope that helps....
I created one android application I followed all the steps to make API keys and intalled google play services from Android SDK Manager. I read so many blogs for integartion google map, I Import the libraty project to my worksapce from "\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib" path. when I tried to add library project from project's property window in android tab I got following out put
But when I check this library second time than I got following out put in android tab
I have proble of libraty project. I used eclipse IDE. I got some solution but for different IDE , so suggest me for best solution..
The first problem usually happens when the path to the library is too long, the solution would be to move the google-play-services lib to a place where it path would be shorter and then try to reference it again.
your second problem:
"Google Maps Android API(23127): Failed to load map. Could not contact Google servers."
caused usually when there is a problem with your API key or a problem with the permissions you have defined in the manifest file, take a look a this post I wrote and go over all the steps to generate the key:
Google Map API key
Next, check steps 5-7 and verify you defined the right permissions:
Google Map API V2
Sometimes it may happen, you should remove and add the same library again
or restart the eclipse and add the library