android studio处理百度定位异常 no found the liblocSDK4d.so file, please correct settings
来源:互联网 发布:sql delete语句返回值 编辑:程序博客网 时间:2024/05/18 22:12
出错的地方是在:
<span style="font-size:24px;"> static { try { System.loadLibrary("locSDK5"); } catch (UnsatisfiedLinkError var1) { var1.printStackTrace(); af = true; throw new IllegalStateException("no found the liblocSDK4d.so file, please correct settings"); } }</span>
Jni调用时出错的。该代码在eclipse上运行时没有问题的,但是到android studio上就会报 no found the liblocSDK4d.so file, please correct settings异常。原因是找不到locaSDK5..但是我们明明添加了liblocalSDk5文件,为什么会搜索不到呢?解决方法如下:
1.检查localSDK5.so是否在armeabi文件夹下
2.就是我们最容易忽视的地方build.gradle文件
<span style="font-size:24px;"> sourceSets { main { jniLibs.srcDirs = ['libs'] } }}</span>确定是否配置了jni的调用地址。
希望对读者有一定的帮助,有什么问题可随时跟我留言。谢谢
1 0
- android studio处理百度定位异常 no found the liblocSDK4d.so file, please correct settings
- java.lang.IllegalStateException: no found the liblocSDK4d.so file, please correct settings
- 百度地图---获取当前位置出现的问题--Caused by: java.lang.IllegalStateException: no found the liblocSDK4d.so file
- 升级百度地图sdk到5.3,提示no found the liblocSDK4d.so
- android 调用百度地图SDK,出现 not found the liblocSDK4d.so 解决方法
- Android异常之Please fix the project‘s Gradle settings
- Android Studio No JDK found. Please validate either STUDIO_JDK, JDK_HOM
- Android Studio 混淆打包 IOException: Please correct the above warnings first
- Android studio异常Class not found using the boot class loader; no stack available
- Android Studio异常"The plugin org.jetbrains.android failed to save settings and has been disabled"处理总结
- Android ProGuard: Please correct the above warnings first的警
- Android Studio 安装No JVM Installation found. Please install a 64 bit JDK.解决方法
- android studio :The file is not part of the project.Please include it
- A file with the correct name was found in this directory, but it is not the correct one.
- android studio *.css *.js file type settings
- luence基础学习——no segments* file found in org.apache.lu异常处理
- 百度地图定位-android studio
- No Android SDK found. Please configure an Android SDK.
- cmake函数参数解析
- NSData与 byte 和NSString转换
- Intent和IntentFilter详解
- 工作周报048
- ANDROID项目重构之路:实现篇
- android studio处理百度定位异常 no found the liblocSDK4d.so file, please correct settings
- 华为公司java面试题及答案
- 推荐(不定期更新)
- MySQL增加表字'
- Idea中快捷自动补全
- 文章标题
- Android的v7包中的新控件——(一)RecyclerView(超级listview,传说会代替listview)
- iOS 键盘动画
- 索引原理