开发者

Error in AndroidManifest.xml

I have a problem in the manifest when i try to use this library (com.google.android.maps)

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

    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <uses-library android:name="com.google.android.maps" />
        <activity android:name=".HelloGoogleMaps" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar">
            <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" 开发者_如何学Go/>
</manifest> 


Finally, i found the problem. i used Google APIs as Project Build Target instead of Android 2.2.


You need to get a Google API Key. Check this link: http://code.google.com/android/add-ons/google-apis/mapkey.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜