Android 2.2的谷歌地图的错误 [英] android 2.2 google map error

查看:76
本文介绍了Android 2.2的谷歌地图的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前google.map API来开发一个项目,在Android 2.1效果很好。但是,当我运行在Android 2.2在同一个项目,它遇到了一些错误。所显示的误差


  

- AndroidRuntime致命异常:主要
   - AndroidRuntime java.lang.NoClassDefFoundError的:android.net.NetworkConnectivityListener


  
  

- AndroidRuntime在com.google.android.maps.MapActivity.onCreate(MapActivity.java:199)


我不知道问题出在哪里?谁能帮我?
我会在preciate非常喜欢!


解决方案

  1. 下手目标名称谷歌的API, API级别8,平台2.2
  2. 模拟器
  3. 拉离模拟器文件/system/framework/com.google.android.maps.jar推到您的手机目录/系统/ framwork。

  4. 拉离模拟器文件/etc/permissions/com.google.android.maps.xml推到您的手机目录的/ etc /权限。

  5. 重新启动您的手机,然后再试一次。

祝你好运。

I used google.map api to develop a project which works well on android 2.1. But when I run the same project on android 2.2, it encountered some errors. The shown errors are

-- AndroidRuntime FATAL EXCEPTION:main -- AndroidRuntime java.lang.NoClassDefFoundError:android.net.NetworkConnectivityListener

-- AndroidRuntime at com.google.android.maps.MapActivity.onCreate(MapActivity.java:199)

I don't know where is the problem? Can anyone help me? I will apreciate it very much!

解决方案

  1. start the emulator with Target Name Google APIs, API level 8, Platform 2.2
  2. pull the file /system/framework/com.google.android.maps.jar from the emulator and push into your phone dir /system/framwork.
  3. pull the file /etc/permissions/com.google.android.maps.xml from the emulator and push into your phone dir /etc/permissions.
  4. restart your phone and try again.

Good luck.

这篇关于Android 2.2的谷歌地图的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆