2014-09-26 159 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