2014-09-26 79 views
-3
<?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:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:clickable="true" 
     android:id="@+id/themap" 
     android:apikey = "AIzaSyDc9ac67bCYPqhVYz9pxhTJsK9shZH3iQg"/> 
    </LinearLayout> 

属性“apikey”没有资源标识符这是我activity_main.xml中的文件... BT它显示上面提到的错误......我也包括机器人:名字=“COM .google.android.maps”在我的清单file..plz帮助发现在包“机器人”

+0

错误是不言自明的。看看https://developers.google.com/maps/documentation/android/start#getting_the_google_maps_android_api_v2 – Raghunandan 2014-09-26 11:26:53

+0

包括jar文件或运行谷歌api的应用程序 – 2014-09-26 11:29:23

+0

我跟着那个链接bt它对我没有帮助... 。我是新的android和follwing tuturials,并做同样的.... plz对待我作为一个初学者..thankx – 2014-09-26 11:35:38

回答

1

检查,如果你仍然面临problem

无论你在你的项目属性选择它作为 Google APIs

enter image description here

按照此

+0

我有seletcted谷歌apis,但它不是显示谷歌播放服务,如它显示在照片... – 2014-09-26 12:47:50

+0

检查此链接http://mobiforge.com/design-development/developing-with-google-maps- V2-机器人 – Gattsu 2014-09-26 12:52:10