首先导入高德地图依赖的jar文件,并添加权限
1 xml布局文件中添加地图
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<com.amap.api.maps2d.MapView
android:layout_marginTop="5dp"
android:id="@+id/map_map01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>