Note that there are some explanatory texts on larger screens.

plurals
  1. POEmpty grid in MapView on android
    text
    copied!<p>I am trying to make my MapView run on android. But I get an empty grid.</p> <p>I followed the exceptions and I get an error: "java.io.IOException: Server returned: 3".</p> <p>I deleted my debug.keystore several times, recreated it. I created new api keys with the api console each time.</p> <p>This is how I declared my MapView:</p> <pre><code>&lt;com.google.android.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mapView" android:layout_width="match_parent" android:layout_height="184dp" android:layout_x="0dp" android:layout_y="0dp" android:apiKey="my api key" android:clickable="true" &gt; &lt;/com.google.android.maps.MapView&gt; </code></pre> <p>I also added several permissions in my android manifest file:</p> <p> </p> <pre><code>&lt;uses-sdk android:minSdkVersion="17" android:targetSdkVersion="17" /&gt; &lt;permission android:name="com.example.conti_lab6.permission.MAPS_RECEIVE" android:protectionLevel="signature"/&gt; &lt;uses-permission android:name="com.example.conti_lab6.permission.ACCESS_COARSE_LOCATION"&gt;&lt;/uses-permission&gt; &lt;uses-permission android:name="com.example.conti_lab6.permission.ACCESS_FINE_LOCATION"&gt;&lt;/uses-permission&gt; &lt;uses-permission android:name="com.example.conti_lab6.permission.INTERNET"&gt;&lt;/uses-permission&gt; &lt;uses-permission android:name="android.permission.INTERNET"/&gt; &lt;uses-feature android:glEsVersion="0x00020000" android:required="true"/&gt; &lt;uses-permission android:name="android.permission.INTERNET"/&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;!-- The following two permissions are not required to use Google Maps Android API v2, but are recommended. --&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt; &lt;application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name"&gt; &lt;activity android:name="com.example.conti_lab6.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;uses-library android:name="com.google.android.maps" /&gt; &lt;/application&gt; </code></pre> <p></p> <p>I am out of ideas for this. I am running the emulator locally and it should use the debug.keystore in my .android file.</p>
 

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