Android 2.2的谷歌地图的错误 [英] android 2.2 google map error
问题描述
我以前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非常喜欢!解决方案
- 下手目标名称谷歌的API,
模拟器API级别8,平台2.2 - 拉离模拟器文件/system/framework/com.google.android.maps.jar推到您的手机目录/系统/ framwork。
- 拉离模拟器文件/etc/permissions/com.google.android.maps.xml推到您的手机目录的/ etc /权限。
- 重新启动您的手机,然后再试一次。
祝你好运。
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!
解决方案
- start the emulator with Target Name Google APIs, API level 8, Platform 2.2
- pull the file /system/framework/com.google.android.maps.jar from the emulator and push into your phone dir /system/framwork.
- pull the file /etc/permissions/com.google.android.maps.xml from the emulator and push into your phone dir /etc/permissions.
- restart your phone and try again.
Good luck.
这篇关于Android 2.2的谷歌地图的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!