简体   繁体   English

AndroidManifest.xml; 无法包含外部库

[英]AndroidManifest.xml; unable to include external library

I'm following the MapView tutorial on the Android website 我正在关注Android网站上的MapView教程

[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.

I've copied in the external Maps API as instructed, my XML file looks as follows 我已按照指示在外部Maps API中进行了复制,我的XML文件如下所示

<?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 但是,当我尝试编译并运行时,出现以下错误

I'm unable to see what is wrong with my XML? 我看不到XML有什么问题?

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

When you copied and pasted, the quote got turned into a different ascii value quote character. 复制并粘贴时,引号变成了另一个ascii值引号字符。 Retype the quote characters 重新输入引号字符

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM