Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Maps APIv2: Failed to find provider info for com.google.android.settings
    primarykey
    data
    text
    <p>I have been struggling to include a Google Map in my android project. I have been through a variety of questions right here on stackoverflow, and still can't get a map to display.</p> <p>I am running Eclipse SDK 4.2.2 on a 64-bit Windows 7 box. I have retrieved my SHA1 and gotten my APIv2 key from Google.</p> <p>I have also tried installing the .apk file on my Samsung Galaxy Nexus, and I get the same result as I do when using the emulator.</p> <p><strong>Screenshot of my Android emulator:</strong> I can't post an image, so here's a dropbox link: <a href="https://www.dropbox.com/s/i9qam1w2762z9he/emulator_screen_cap.png" rel="nofollow">https://www.dropbox.com/s/i9qam1w2762z9he/emulator_screen_cap.png</a></p> <p><strong>AndroidManifest.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.test.maptest2" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="16" android:targetSdkVersion="16" /&gt; &lt;permission android:name="com.test.maptest2.permission.MAPS_RECEIVE" android:protectionLevel="signature" /&gt; &lt;uses-feature android:glEsVersion="0x00020000" android:required="true" /&gt; &lt;uses-permission android:name="com.test.maptest2.permission.MAPS_RECEIVE" /&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-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_WIFI_STATE" /&gt; &lt;application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" &gt; &lt;activity android:name="com.test.maptest2.MainActivity" android:label="@string/app_name" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="myAPIKey" /&gt; &lt;/application&gt; </code></pre> <p></p> <p><strong>activity_main.xml</strong></p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" &gt; &lt;fragment android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" class="com.google.android.gms.maps.MapFragment" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p><strong>MainActivity.java</strong></p> <pre><code>package com.test.maptest2; import android.app.Activity; import android.os.Bundle; import android.view.Menu; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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