地图应用程序错误

问题描述:

我正在做android中的Google MAPS应用程序。我已经安装了2个平台2.3.3和2.1,并且也对应了Google API。我已经获得Google Maps API密钥。我也在清单文件中添加了权限。对于此应用程序,我使用Google API 2.1构建SDk和Android 2.1为MinSDK版本。但是当我运行该项目时,它在控制台中显示警告地图应用程序错误

忽略平台'android-8':build.prop缺失

另外关于API KEY我在main.xml中文件粘贴错误(机器人:apikey =)是

错误:错误解析XML:没有很好地形成(标记无效)

main.xml文件代码是

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
> 

<com.google.android.maps.MapView 
android:id="@+id/mapView" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:enabled="true" 
android:clickable="true" 
android:apiKey="<MYAPIKEY>" /> 

</LinearLayout> 

我在主要活动中没有错误。如何解决此问题?

+0

我隐藏了你的apikey,所以别人不能使用它。 –

API密钥不应该包含<>字符。

+0

谢谢错误消失了。我也有一个疑问。项目将与Google API 2.1目标一起使用 – Hari