Google Maps Android API v2官网例子使用说明 4年前

1.安装****Google Play services SDK
Google Maps SDK已经作为Google Play services SDK的一部分,所以首先要安装Google Play services SDK,Eclipse->android sdk manager->Extra文件夹下选中google play service安装
Google Maps Android API v2官网例子使用说明

2.将Google Play services 作为library工程导入
(1) File > Import > Android > Existing Android Code Into Workspace and click Next.(2)Browse..., enter /extras/google/google_play_services/libproject/google-play-services_lib, and click Finish.
(3)右击工程文件选择properties->Android->拖动滚动条向下直到看到is Library选择
Google Maps Android API v2官网例子使用说明

3.导入官网的maps例子工程
(1)File > Import > Android > Existing Android Code Into Workspace and click **Next
**

**(2)Browse..., enter /extras/google/google_play_services/samples/maps, and click Finish.
(3)Project > Properties, select Java Build Path, and navigate to Libraries.
(4)Select Add External Jars, include the following jar files, and click OK: + /extras/android/compatibility/v4/android-support-v4.jar
(5)在AndroidManifest.xml文件中添加你自己的 Google Maps Android API key.
**

<meta-data     android:name="com.google.android.maps.v2.API_KEY"     android:value="API_KEY"/>

**
(6)Run > Run to test the sample app.**

image
mambh-
没有什么永远。其实大家都知道这个事实。所以才祈祷着永远。比起最终要来的结束,人们总是期望着不会改变的永远。
4
发布数
0
关注者
6508
累计阅读

热门教程文档

MySQL
34小节
React
18小节
Objective-C
29小节
React Native
40小节
Vue
25小节
广告