0

Im trying very basic example of google apis at http://www.androidcompetencycenter.com/?s=GPS. I've done the coding part & tried to install on AVD. I'm getting error . [Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY].

I installed Google apis for API Level 7 & 8.I added between Application tag. I'm not getting what's the error. I've done lot of searching also. Please somebody can help.

here is my manifest.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.position"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="7"
    android:targetSdkVersion="15" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >

     <uses-library android:name="”com.google.android.maps”" />

    <activity
        android:name=".MainActivity"
        android:label="@string/title_activity_main" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>


<uses-permission android:name="android.permission.INTERNET" >
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" >
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" >
</uses-permission>

4

2 に答える 2

0

Google APIマップを登録しましたか?

私のManifest.XMLは次のようなものです。

<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="7"/>

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<application
    android:icon="@raw/logo"
    android:label="@string/app_name" >
    <activity
        android:name=".VentanaIP"
        android:screenOrientation="portrait"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity android:name=".VentanaMapa"
         android:screenOrientation="portrait"></activity>
    <uses-library android:name="com.google.android.maps" />     
</application>

<com.google.android.maps.MapView
             android:layout_width="fill_parent"
             android:layout_height="fill_parent"
             android:apiKey="xxXXXXXxxXXXxxXXXXXxxXXXXX"
             />

于 2012-10-11T07:45:59.980 に答える
0
change like this

<uses-library android:name="com.google.android.maps" />
于 2012-10-11T07:39:50.057 に答える