关于百度地图 java.lang.NoSuchMethodError: com.baidu.location.BDLocation.getAddress
来源:互联网 发布:亚马逊a9算法基本因素 编辑:程序博客网 时间:2024/06/01 09:15
异常信息:
02-25 08:26:27.010: E/dalvikvm(22768): Could not find class 'com.baidu.location.Address$Builder', referenced from method com.baidu.serverLoc.b.f.new
02-25 08:26:27.010: W/dalvikvm(22768): VFY: unable to resolve new-instance 86 (Lcom/baidu/location/Address$Builder;) in Lcom/baidu/serverLoc/b/f;
02-25 08:26:27.010: D/dalvikvm(22768): VFY: replacing opcode 0x22 at 0x016f
02-25 08:26:27.020: D/dalvikvm(22768): DexOpt: unable to opt direct call 0x00ce at 0x171 in Lcom/baidu/serverLoc/b/f;.new
02-25 08:26:27.020: I/dalvikvm(22768): Could not find method android.content.Context.getExternalFilesDirs, referenced from method com.baidu.serverLoc.a.e.int
02-25 08:26:27.030: W/dalvikvm(22768): VFY: unable to resolve virtual method 12: Landroid/content/Context;.getExternalFilesDirs (Ljava/lang/String;)
[Ljava/io/File;
02-25 08:26:27.030: D/dalvikvm(22768): VFY: replacing opcode 0x6e at 0x005b
02-25 08:26:27.090: D/dalvikvm(22768): GC_CONCURRENT freed 288K, 12% free 2664K/3024K, paused 3ms+1ms, total 14ms
02-25 08:26:27.150: W/dalvikvm(22768): threadid=12: thread exiting with uncaught exception (group=0x41743930)
02-25 08:26:27.150: E/AndroidRuntime(22768): FATAL EXCEPTION: ServiceStartArguments
02-25 08:26:27.150: E/AndroidRuntime(22768): java.lang.NoSuchMethodError: com.baidu.location.BDLocation.getAddress
02-25 08:26:27.150: E/AndroidRuntime(22768): at com.baidu.serverLoc.c.m.try(Unknown Source)
02-25 08:26:27.150: E/AndroidRuntime(22768): at com.baidu.serverLoc.c.c$b.handleMessage(Unknown Source)
02-25 08:26:27.150: E/AndroidRuntime(22768): at android.os.Handler.dispatchMessage(Handler.java:99)
02-25 08:26:27.150: E/AndroidRuntime(22768): at android.os.Looper.loop(Looper.java:137)
02-25 08:26:27.150: E/AndroidRuntime(22768): at android.os.HandlerThread.run(HandlerThread.java:60)
02-25 08:26:37.390: I/Process(22768): Sending signal. PID: 22768 SIG: 9
错误原因:此应用中只开发定位功能,引用了BaiduLBS_Android.jar 而不是引用locSDK_6.05.jar 引用的库文件为liblocSDK6.so 而不是 liblocSDK6a.so引起的
出现在问题的原因是下载的官网开发包并参考官网开发流程的代码进行开发引起的错误,应该下载官网示例代码,在实例代码运行正常的情况下,对实例代码和jar进行copy
- 关于百度地图 java.lang.NoSuchMethodError: com.baidu.location.BDLocation.getAddress
- 关于百度地图 java.lang.NoSuchMethodError: com.baidu.location.BDLocation.getAddress
- 百度地图 android Unable to execute dex: Multiple dex files define Lcom/baidu/location/BDLocation$a
- 百度地图错误 java.lang.NoClassDefFoundError: com/baidu/platform/comjni/engine/AppEngine
- 百度地图加载问题 Java.lang.UnsatisfiedLinkError: Native method not found: com.baidu...
- Android使用百度地图SDK调用百度地图"java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.platform."
- Android使用百度地图SDK调用百度地图"java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.platform."
- 异常:NoClassDefFoundError: java.lang.NoClassDefFoundError: com.baidu.location.Loca
- 百度地图sdk---地图定位功能的错误has leaked ServiceConnection com.baidu.location.LocationClient
- 百度地图sdk---地图定位功能的错误has leaked ServiceConnection com.baidu.location.LocationClient
- Android Studio使用百度地图出现 java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.mapapi.Mj.
- 百度地图中,提示java.lang.UnsatisfiedLinkErr:No implementation found for int com.baidu.platform.comjni.map.c
- 百度地图api android sdk leaked ServiceConnection com.baidu.location.LocationClient错误
- 百度地图api android sdk leaked ServiceConnection com.baidu.location.LocationClient错误
- 百度地图api出现 leaked ServiceConnection com.baidu.location.LocationClient错误
- has leaked ServiceConnection com.baidu.location.LocationClient that was originally bound here 百度地图
- Android--百度地图报错:at com.baidu.location.LocationClient.onStart(Unknown Source)
- 百度地图jar包冲突,特别是定位包冲突com/baidu/location/Address/$a.class。
- perl核心模块解析(二)List
- java 将 Double类型的数据转换为Int 类型 四舍五入
- 宽高属性
- iOS中获取当前是真机还是模拟器
- Vim简明教程【CoolShell】
- 关于百度地图 java.lang.NoSuchMethodError: com.baidu.location.BDLocation.getAddress
- 列表样式
- 天气预报插件
- 列表样式
- 鼠标样式
- hdu 1535 Invitation Cards
- Android事件分发,拦截,处理机制
- 面向对象类间关系 摘自【java核心技术 卷1 基础知识 原书第8版】
- C++类成员函数