My mapView does not show a map, it just shows overlay elements

I already tried to generate my key in https://developers.google.com/android/maps-api-signup with a lot of MD5 many times, but it doesn’t work. When trying to use MapView var mapIntent = new Intent (Intent.ActionView, geoUri) it works, but I can not put my overlay elements. I need to use a MapView from the layout, but just show the lines and overlayitems. I tried using the HelloMap example on a cell phone, but the same thing happens as not displaying maps only overlay elements.

+4
source share
4 answers

I solved the problem !!!! \ O

Instead of generating a .apk release, I publish .apk as I will publish in the store! My MapView worked on both 3g and wi-fi. Thanks to everyone for helping me!

0
source

Either you do not have a valid key, or you forgot to put the uses-library line in your manifest.

+2
source

I saw the same thing on Monday this week, but did not return to the project since I was debugging it.

My suspicion is that this could be a VS2012 or Windows8 error, as I previously sent several applications from the same PC (before VS2012 and Win8)

If you have this reproducible right now, I think you should register it with Xamarin - support@xamarin.com or http://bugzilla.xamarin.com

+1
source

To create the keystore I used

C: \ Program Files \ Java \ jdk1.6.0_20> keytool -genkey -alias umAlias ​​-keystore C: \ localParaoArquivo \ nomedoarquivo.keystore

to see md5 i

C: \ Program Files \ Java \ jdk1.6.0_20> keytool -list -v -keystore C: \ localParaoArquivo \ nomedoarquivo.keystore

I put my key in xml and I also tried at runtime, but it doesn't work.

What is the difference between MD5 and SHA1? I use in my manifest

  <uses-library android:name="com.google.android.maps" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES" /> 
0
source

Source: https://habr.com/ru/post/1443240/


All Articles