AndroidManifest.xml; unable to include external library

邮差的信 提交于 2020-01-05 06:38:09

问题


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.

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

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


回答1:


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

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



来源:https://stackoverflow.com/questions/3541061/androidmanifest-xml-unable-to-include-external-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!