1.打开Eclipse--->Windows--->Preferences--->Android--->Build ;查看默认的debug keystore位置,在命令提示符窗口中定位到debug.keystore所在的文件夹,执行:keytool -list -keystore debug.keystore 提示输入密码,默认密码是:android
2.得到debug.keystore的MD5值:1D:29:79:E2:21:01:80:03:7B:B7:32:87:A1:6F:74:A7
3.打开http://code.google.com/intl/zh-CN/android/maps-api-signup.html ,将MD5值粘进去 点击Generate API Key按钮,即可得到Key.
4.在LAYOUT文件中加入如下格式:
<com.google.android.maps.MapView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="0ZRFme9AJGjF43LtxRf_0d8_O38NlgqgUm8vFfg"
/>
5.最后用debug.keystore生成签名包