安卓开发,在我的eclipse中新建了安卓工程但是没有GoogleAPI的MapView这个控件,求助。
首先我建立的安卓工程buildtarget选择了googleAPI
而且我在manifest中也导入了库 <uses-library android:name="com.google.android.maps"></uses-library>
但是在xml中应用MapView控件的时候根本引用不出来,还是只有安卓的基本控件。
这是什么原因!!??
求助啊,纠结我一天了!!eclipseandroidxml

解决方案 »

  1.   

    把这段 加在xml里试试
    <com.google.android.maps.MapView  
            android:id="@+id/mapView"  
            android:layout_width="fill_parent"  
            android:layout_height="fill_parent"  
            android:clickable="true"  
            android:apiKey="0AGkgJO3XApZXR0NLQKLg5I_9ipj4upGXtAIzRw"/>   
      

  2.   

    哦 我知道了 这个你用不了 这个是我的
    1.DOS模式下生产MD5值   c:\java\jdk1.6.0_01\jre\bin  输入 keytool -list -alias androiddebugkey -keystore "保存路径" -storepass android -keypass android
    2.取得md5编码去 google map api signup 网站 输入md5值 取得签名地图