Android--百度地图报错:at com.baidu.location.LocationClient.onStart(Unknown S...
在使用百度地图定位的时候,报一个异常
Exception Ljava/lang/UnsatisfiedLinkError;   
threadid=1: thread exiting with uncaught exception (group=0x410d19d8)  
  
FATAL EXCEPTION: main  
  
java.lang.ExceptionInInitializerError  
at com.baidu.location.g.a(Unknown Source)  
at com.baidu.location.f.int(Unknown Source)  
at com.baidu.location.f.int(Unknown Source)  
at com.baidu.location.f.if(Unknown Source)  
  
at com.baidu.location.f$b.handleMessage(Unknown Source)  
at android.os.Handler.dispatchMessage(Handler.java:99)  
  
at android.os.Looper.loop(Looper.java:137)  
at android.app.ActivityThread.main(ActivityThread.java:4439)  
at java.lang.reflect.Method.invokeNative(Native Method)  
at java.lang.reflect.Method.invoke(Method.java:511)  
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)  
、  
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)  
  
at dalvik.system.NativeStart.main(Native Method)  
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load locSDK_2.4: findLibrary returned null  
  
at java.lang.Runtime.loadLibrary(Runtime.java:365)  
at java.lang.System.loadLibrary(System.java:535)  
at com.baidu.location.Jni.<clinit>(Unknown Source)  
 解决办法:首先检查libs下是否缺少支持的.so文件,(我的已经存在)
继续检查,发现new LocationClient 这个的时候 需要用 getApplicationContext。 
问题解决。(用全局变量context)
关注公众号
					低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 
							
								
								    上一篇
								    
								
								Android属性动画源代码解析(超详细)
本文假定你已经对属性动画有了一定的了解,至少使用过属性动画。下面我们就从属性动画最简单的使用开始。 ObjectAnimator .ofInt(target,propName,values[]) .setInterpolator(LinearInterpolator) .setEvaluator(IntEvaluator) .setDuration(500) .start(); 相信这段代码对你一定不陌生,代码中有几个地方是本文中将要重点关注的,setInterpolator(...)、setEvaluator(...)、setDuration(...)在源代码中是如何被使用的。另外,我们也将重点关注Android中属性动画是如何一步步地实现动画效果的(精确到每一帧(frame))。最后啰嗦几句,本文中使用的代码是Android 4.2.2。 上面代码的作用就是生成一个属性动画,根据ofInt()我们知道只是一个属性值类型为Int的View的动画。先放过其他的函数,从ObjectAnimator的start()函数开始。 public void start() { //...省略不必要...
 - 
							
								
								    下一篇
								    
								
								用adb命令组装PowerShell实用小工具——Android小助手
[本文出自天外归云的博客园] 前置工作 1. 需要安装adb; 2. 需要本机设置PowerShell脚本运行策略。 脚本示例 PowerShell例子如下: Function GetPkgAndActName(){ #运行脚本前确保app处于激活状态 $a = adb shell dumpsys window windows|findstr Focu; $b = $a -like "*mCurrentFocus*"; $b = $b.Trim(); $startIndex = $b.IndexOf("{"); $endIndex = $b.IndexOf("}"); $pkgAndActName = (($b.Substring($startIndex+1,$endIndex-$startIndex-1)).split(" "))[2]; return $pkgAndActName } Function GetCurrFlow(){ #运行脚本前确保app处于激活状态 $pkgAndActName = GetPkgAndActName; $pkgName = ($pkgAndActN...
 
相关文章
文章评论
共有0条评论来说两句吧...
文章二维码
点击排行
推荐阅读
最新文章
- CentOS6,CentOS7官方镜像安装Oracle11G
 - SpringBoot2编写第一个Controller,响应你的http请求并返回结果
 - CentOS7,8上快速安装Gitea,搭建Git服务器
 - Eclipse初始化配置,告别卡顿、闪退、编译时间过长
 - SpringBoot2整合Thymeleaf,官方推荐html解决方案
 - SpringBoot2全家桶,快速入门学习开发网站教程
 - MySQL表碎片整理
 - CentOS7编译安装Gcc9.2.0,解决mysql等软件编译问题
 - CentOS8安装MyCat,轻松搞定数据库的读写分离、垂直分库、水平分库
 - Docker快速安装Oracle11G,搭建oracle11g学习环境
 

			
				
				
				
				
				
				
				
微信收款码
支付宝收款码