Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/227.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我无法为android项目导入MapView_Android_Eclipse_Google Maps - Fatal编程技术网

我无法为android项目导入MapView

我无法为android项目导入MapView,android,eclipse,google-maps,Android,Eclipse,Google Maps,} 我尝试导入以下内容: 导入com.google.android.maps.MapActivity 但当我输入com时google不会出现..您必须将map.jar添加到libs中。虽然它是在我们扩展MapActivity时自动添加的 您必须将map.jar添加到libs中。虽然它是在我们扩展MapActivity时自动添加的 1-转到项目属性 2-从android选项卡中,为您的目标平台选择Google API (对于2.2,选择谷歌API平台2.2和类似的东西) 我认为这可以解决问题1-转

}

我尝试导入以下内容: 导入com.google.android.maps.MapActivity


但当我输入com时google不会出现..

您必须将map.jar添加到libs中。虽然它是在我们扩展MapActivity时自动添加的

您必须将map.jar添加到libs中。虽然它是在我们扩展MapActivity时自动添加的

1-转到项目属性 2-从android选项卡中,为您的目标平台选择Google API (对于2.2,选择谷歌API平台2.2和类似的东西)


我认为这可以解决问题

1-转到项目属性 2-从android选项卡中,为您的目标平台选择Google API (对于2.2,选择谷歌API平台2.2和类似的东西)


我认为这可以解决问题

您是否将Google API设置为项目构建目标?项目-->属性..更改sdk??或者你的意思是什么?你把谷歌API设置为项目构建目标了吗?项目-->属性..更改sdk??或者你的意思是其他的吗?但是我选择了3.2作为我的SDKtanks的最大版本。但是我选择了3.2作为我的sdkKamal的最大版本。那没有告诉我任何事情。卡马尔。那没有告诉我任何事情
public class ActivityGoogleMaps extends MapActivity {// map view shows as an error
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
}