【问题标题】:Error in AndroidManifest.xmlAndroidManifest.xml 中的错误
【发布时间】:2010-06-24 17:27:47
【问题描述】:

当我尝试使用此库 (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> 

【问题讨论】:

  • 你有什么问题?
  • 导入 com.google.android.maps.MapActivity;即使我在清单中添加 也无法检测到库!然后我不能扩展到 MapActivity
  • [2010-06-24 13:16:15 - HelloGoogleMaps] XML 文件中的错误:正在中止构建。
  • 您遇到的错误或异常是什么?在您发布的 xml 中,您没有
  • 我没有错误或异常。我正在尝试扩展到 MapActivity,但未检测到该库。我将 放在清单中,但我仍然无法导入 com.google.android.maps

标签: xml android manifest android-manifest


【解决方案1】:

最后,我发现了问题。我使用 Google APIs 作为项目构建目标而不是 Android 2.2。

【讨论】:

    【解决方案2】:

    您需要获取 Google API 密钥。检查此链接:http://code.google.com/android/add-ons/google-apis/mapkey.html

    【讨论】:

      猜你喜欢
      • 2015-06-04
      • 2018-01-12
      • 1970-01-01
      • 1970-01-01
      • 2021-05-16
      • 1970-01-01
      • 2013-12-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多