簡體   English   中英

AndroidManifest.xml中的錯誤

[英]Error in AndroidManifest.xml

嘗試使用此庫(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" />
</manifest> 

最后,我發現了問題。 我使用Google API作為Project Build Target而不是Android 2.2。

您需要獲取Google API密鑰。 檢查此鏈接: http : //code.google.com/android/add-ons/google-apis/mapkey.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM