设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 8728|回复: 1

arm64-v8a导致程序崩溃问题

[复制链接]

4

主题

869

帖子

3032

积分

论坛元老

Rank: 8Rank: 8

积分
3032
发表于 2016-5-3 19:43:26 | 显示全部楼层 |阅读模式
本帖最后由 佰锐科技-邵光清 于 2016-5-3 19:45 编辑
05-03 16:40:52.309 6248-6248/com.example.helloanychat I/art: Late-enabling -Xcheck:jni
05-03 16:40:52.329 6248-6248/com.example.helloanychat D/TidaProvider: TidaProvider()
05-03 16:40:52.419 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:52.899 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:52.929 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:52.959 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:52.989 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:53.029 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:53.259 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:53.289 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:53.319 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:53.349 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:53.379 6248-6248/com.example.helloanychat I/art: Adjust thread count for runtime dex2oat
05-03 16:40:53.539 6248-6248/com.example.helloanychat E/art: dlopen("/data/app/com.example.helloanychat-1/lib/arm64/libaudio_preprocessing.so", RTLD_LAZY) failed: dlopen failed: "/data/app/com.example.helloanychat-1/lib/arm64/libaudio_preprocessing.so" is 32-bit instead of 64-bit
05-03 16:40:53.539 6248-6248/com.example.helloanychat D/AndroidRuntime: Shutting down VM
05-03 16:40:53.539 6248-6248/com.example.helloanychat E/AndroidRuntime: FATAL EXCEPTION: main
                                                                        Process: com.example.helloanychat, PID: 6248
                                                                        java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.example.helloanychat-1/lib/arm64/libaudio_preprocessing.so" is 32-bit instead of 64-bit
                                                                            at java.lang.Runtime.loadLibrary(Runtime.java:371)
                                                                            at java.lang.System.loadLibrary(System.java:988)
                                                                            at com.bairuitech.anychat.AnyChatCoreSDK.<clinit>(AnyChatCoreSDK.java:700)
                                                                            at com.example.helloanychat.MainActivity.InitSDK(MainActivity.java:126)
                                                                            at com.example.helloanychat.MainActivity.onCreate(MainActivity.java:112)
                                                                            at android.app.Activity.performCreate(Activity.java:6041)
                                                                            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)
                                                                            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2283)
                                                                            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392)
                                                                            at android.app.ActivityThread.access$800(ActivityThread.java:154)
                                                                            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
                                                                            at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                            at android.os.Looper.loop(Looper.java:135)
                                                                            at android.app.ActivityThread.main(ActivityThread.java:5273)
                                                                            at java.lang.reflect.Method.invoke(Native Method)
                                                                            at java.lang.reflect.Method.invoke(Method.java:372)
                                                                            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
                                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)
05-03 16:40:53.559 6248-6248/com.example.helloanychat I/Process: Sending signal. PID: 6248 SIG: 9



出现上述问题,一般是在android 5.0以上、64位处理器设备,并且项目中存在arm64-v8a、armeabi两个目录;如果设备芯片支持ARMv8指令集,则会在arm64-v8a查找对应的库文件,所以只要将arm64-v8a删除,只保留armeabi目录即可解决上述问题。
回复

使用道具 举报

22

主题

60

帖子

212

积分

中级会员

Rank: 3Rank: 3

积分
212
发表于 2016-5-25 16:37:14 | 显示全部楼层
我重新写个试试
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|AnyChat ( 粤ICP备13022410号-1 )  

GMT+8, 2024-3-30 09:50 , Processed in 0.110693 second(s), 22 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表