AndroidManifest.xml;无法包含外部库 [英] AndroidManifest.xml; unable to include external library

查看:114
本文介绍了AndroidManifest.xml;无法包含外部库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在遵循 MapView 教程Android网站

I'm following the MapView tutorial on the Android website

[2010-08-22 11:12:24 - com.android.ide.eclipse.adt.internal.project.AndroidManifestParser] Parser exception for /MeCercana/AndroidManifest.xml: Open quote is expected for attribute "android:name" associated with an  element type  "uses-library".
[2010-08-22 11:12:24 - MeCercana] Error in an XML file: aborting build.

我已按照说明在外部Maps API中进行了复制,我的XML文件如下所示

I've copied in the external Maps API as instructed, my XML file looks as follows

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.jameselsey"
      android:versionCode="1"
      android:versionName="1.0">
  <uses-permission android:name="android.permission.INTERNET" /> 
    <application android:icon="@drawable/icon" android:label="@string/app_name">   
       <uses-library android:name="com.google.android.maps" />          
        <activity android:name=".Mecercana"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest> 

但是,当我尝试编译并运行时,出现以下错误

However, when I try to compile and run I get the following error

我看不到XML有什么问题吗?

I'm unable to see what is wrong with my XML?

推荐答案

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

当您复制并粘贴时,引号变成了一个不同的ascii值引号字符.重新输入引号字符

When you copied and pasted, the quote got turned into a different ascii value quote character. Retype the quote characters

这篇关于AndroidManifest.xml;无法包含外部库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆