Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY for Android 2.2 API Level 8
<p>I'm having an Android GPS project for my CS class. Right now I'm working through tutorials (using Eclipse with ADT plugin) to have an idea of how to use the Android library, but along the way, I received the Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY</p>

<p>I checked on LogCat and it seems the error starts on this line:</p>

<pre><code>03-29 23:05:14.721: E/PackageManager(72): Package virginia.edu.cs2110 requires   unavailable shared library android.location; failing!
</code></pre>

<p>I have looked up this problem and did all the things that I was able to find. I declared the uses-library field in the manifest file:</p>

<pre><code>&lt;uses-library android:name="android.location" /&gt;
&lt;uses-library android:name="com.google.android.maps" /&gt;
</code></pre>

<p>If anyone is wondering, this is my whole manifest file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="virginia.edu.cs2110"
    android:versionCode="1"
    android:versionName="1.0" &gt;
    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
    &lt;uses-sdk android:minSdkVersion="8" /&gt;

    &lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" &gt;
        &lt;activity
            android:name=".TrivialGPS"
            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="android.location" /&gt;
        &lt;uses-library android:name="com.google.android.maps" /&gt;
    &lt;/application&gt;

&lt;/manifest&gt;
</code></pre>

<p>I also created an Android emulator with Target Name "Google API (Google Inc.)":
<a href="http://i42.tinypic.com/2dj3vd5.jpg" rel="nofollow">http://i42.tinypic.com/2dj3vd5.jpg</a></p>

<p>Also, here's the code that I wanted to run:</p>

<pre><code>package virginia.edu.cs2110;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;

import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;


public class TrivialGPS extends MapActivity {

    private MapController mapController;
    private MapView mapView;
    private LocationManager locationManager;

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        // create a map view
        mapView = new MapView(this, "C7:63:2F:C8:93:8B:E1:83:D6:4F:D3:5B:62:C1:75:90");
        mapController = mapView.getController();
        mapController.setZoom(22);
        setContentView(mapView);

        // get a hangle on the location manager
        locationManager =
        (LocationManager) getSystemService(Context.LOCATION_SERVICE);

        locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, 
        new LocationUpdateHandler());
    }

    @Override
    protected boolean isRouteDisplayed() {
        // TODO Auto-generated method stub
        return false;
    }

    public class LocationUpdateHandler implements LocationListener {

        @Override
        public void onLocationChanged(Location loc) {
            int lat = (int) (loc.getLatitude()*1E6);
            int lng = (int) (loc.getLongitude()*1E6);
            GeoPoint point = new GeoPoint(lat, lng);
            mapController.setCenter(point);
            setContentView(mapView);
        }

        @Override
        public void onProviderDisabled(String provider) {}

        @Override
        public void onProviderEnabled(String provider) {}

        @Override
        public void onStatusChanged(String provider, int status, Bundle extras) {}

    }
}
</code></pre>
