Note that there are some explanatory texts on larger screens.

plurals
  1. PO"Failed to load map" error contacting Google servers
    primarykey
    data
    text
    <p>I have checked all the threads about this topic but even following the advices and tutorials I have the same problem.</p> <p>The strange thing is that I have created a sample project with the same configuration and <strong>it works</strong>! And it works even if I change the api key so I don't know if the problem is the key or not.</p> <p>Manifest file:</p> <pre><code>&lt;permission android:name="mypackage.permission.MAPS_RECEIVE" android:protectionLevel="signature"/&gt; &lt;uses-permission android:name="mypackage.permission.MAPS_RECEIVE"/&gt; &lt;uses-permission android:name="android.permission.INTERNET"/&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt; &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/&gt; &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt; &lt;uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" /&gt; &lt;uses-feature android:glEsVersion="0x00020000" android:required="true"/&gt; </code></pre> <p>Inside application tag:</p> <pre><code> &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="my api key"/&gt; </code></pre> <p>Activity:</p> <pre><code> public class MapaActivity extends FragmentActivity{ private GoogleMap mMap; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mapa); setUpMapIfNeeded(); } @Override protected void onResume() { super.onResume(); setUpMapIfNeeded(); } private void setUpMapIfNeeded() { if (mMap == null) { mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap(); if (mMap != null) { setUpMap(); } } } private void setUpMap() { mMap.addMarker(new MarkerOptions().position(new LatLng(40, 12)).title("Marker")); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload