0

我找到了本教程http://android.develop123.com/index.php/component/content/article/2-android-42/4-google-maps-android-api-v2-tutorial 但我的手机是 android 2.2 如何我要在我的 2.2 手机中编译这段代码吗?/我写了这一行,但是当我运行代码时,我如何在 2.2 设备中编译这段代码???

  <uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="17" />
4

1 回答 1

0

You will need to use the google-support library to run Google Maps API V2 on this version of android. Take a look at this blog post I wrote on how to do that:

Google Maps API V2 using support library

Take importent notice at steps number 4 to add the support library:

4. Another import we have to make in order to make our application work on Operation system prior to API11 is to import the support library this can be done very easily using Eclipse: Right-Click you project and choose “Android Tools” and then choose “Add Support Library…”:

enter image description here

于 2013-07-02T20:58:56.330 回答