IM 与 LVB 集成方案:
来源:互联网 发布:seo 衡水培训班 编辑:程序博客网 时间:2024/06/04 19:12
IM 与 LVB 集成方案:
1. 只集成 LVB
* What went wrong:Execution failed for task ':app:transformClassesWithDexForDebug'.> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: Exception while checking library jar
原因是:
build.groud 里面的libs 已经没有 jar 包,而我还依赖 compile fileTree(include: [‘*.jar’], dir: ‘libs’)
解决方式 :
删除 compile fileTree(include: [‘*.jar’], dir: ‘libs’)
2. 问题
05-23 15:52:05.976 15454-15454/? I/art: Late-enabling -Xcheck:jni05-23 15:52:06.289 15454-15454/c I/HwCust: Constructor found for class android.app.HwCustAlarmManagerImpl05-23 15:52:06.416 15454-15454/c W/MicroMsg.SDK.WXApiImplV10: context is not instanceof Activity or Service, disable WXStat05-23 15:52:06.423 15454-15454/ I/SendBroadcastPermission: action:com.tencent.mm.plugin.openapi.Intent.ACTION_HANDLE_APP_REGISTER, mPermissionType:005-23 15:52:06.545 15454-15454/ W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.taikanglife.isalessystem-2/base.apk"],nativeLibraryDirectories=[/data/app/com.taikanglife.isalessystem-2/lib/arm64, /data/app/com.taikanglife.isalessystem-2/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libtxrtmpsdk.so"
3.问题
No implementation found for void com.tencent.rtmp.TXRtmpApi.clearGLBuffer(java.lang.String) (tried Java_com_tencent_rtmp_TXRtmpApi_clearGLBuffer and Java_com_tencent_rtmp_TXRtmpApi_clearGLBuffer__Ljava_lang_String_2)
问题点:这是一个报错,没有找到这个网址
4.
. Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: okhttp3/Address.class
错误原因: okhttp 重复 ,删除一个
5.
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: okio/AsyncTimeout$1.class
错误原因: okio 重复,再删除一个
6.
$ adb shell am start -n "com.taikanglife.isalessystem/com.taikanglife.isalessystem.module.main.live.LivePlayActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHERConnected to process 27333 on device huawei-ale_ul00-N2F4C15C08031325I/art: Background sticky concurrent mark sweep GC freed 12470(651KB) AllocSpace objects, 0(0B) LOS objects, 31% free, 7MB/11MB, paused 30.677ms total 63.439msI/HwCust: Constructor found for class android.app.HwCustAlarmManagerImplW/MicroMsg.SDK.WXApiImplV10: context is not instanceof Activity or Service, disable WXStatI/SendBroadcastPermission: action:com.tencent.mm.plugin.openapi.Intent.ACTION_HANDLE_APP_REGISTER, mPermissionType:0W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.taikanglife.isalessystem-1/base.apk"],nativeLibraryDirectories=[/data/app/com.taikanglife.isalessystem-1/lib/arm64, /data/app/com.taikanglife.isalessystem-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libtxrtmpsdk.so"W/System.err: at java.lang.Runtime.loadLibrary(Runtime.java:379)W/System.err: at java.lang.System.loadLibrary(System.java:1086)W/System.err: at com.tencent.rtmp.TXRtmpApi.<clinit>(TXRtmpApi.java:87)W/System.err: at com.tencent.rtmp.ui.TXCloudVideoView.enableHardwareDecode(TXCloudVideoView.java:119)W/System.err: at com.tencent.rtmp.ui.TXCloudVideoView.<init>(TXCloudVideoView.java:65)W/System.err: at java.lang.reflect.Constructor.newInstance(Native Method)W/System.err: at android.view.LayoutInflater.createView(LayoutInflater.java:638)W/System.err: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:783)W/System.err: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:723)W/System.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:854)W/System.err: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:817)W/System.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:857)W/System.err: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:817)W/System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:534)W/System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:434)W/System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:377)W/System.err: at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:420)W/System.err: at android.app.Activity.setContentView(Activity.java:2219)W/System.err: at com.taikanglife.isalessystem.module.main.live.LivePlayActivity.onCreate(LivePlayActivity.java:145)W/System.err: at android.app.Activity.performCreate(Activity.java:6367)W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)W/System.err: at cn.jiguang.a.a.c.a.a.d.callActivityOnCreate(Unknown Source)W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2404)W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2511)W/System.err: at android.app.ActivityThread.access$900(ActivityThread.java:165)W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1375)W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)W/System.err: at android.os.Looper.loop(Looper.java:150)W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5621)W/System.err: at java.lang.reflect.Method.invoke(Native Method)W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)E/art: No implementation found for void com.tencent.rtmp.TXRtmpApi.clearGLBuffer(java.lang.String) (tried Java_com_tencent_rtmp_TXRtmpApi_clearGLBuffer and Java_com_tencent_rtmp_TXRtmpApi_clearGLBuffer__Ljava_lang_String_2)I/Process: Sending signal. PID: 27333 SIG: 9Application terminated.
重点是:
couldn't find "libtxrtmpsdk.so"No implementation found for void com.tencent.rtmp.TXRtmpApi.clearGLBuffer(java.lang.String) (tried Java_com_tencent_rtmp_TXRtmpApi_clearGLBuffer and Java_com_tencent_rtmp_TXRtmpApi_clearGLBuffer__Ljava_lang_String_2)
腾讯人员提供方案: 集成 小直播里面的 sdk ,试一试
解决方案:
在导入第三方库时,发现 加载不到 .so 文件的内容,折腾了好几天,发现 是由于 ndk {}引用的类型问题导致,解决方式,选择共同有的 手机内核类型,对他们进行统一处理。
其他地方处理的话,也会引起报错,还是统一为妙。
阅读全文
0 0
- IM 与 LVB 集成方案:
- IM方案
- AngularJS与RequireJS集成方案
- struts与spring集成方案
- Android 容联云IM集成:初始化与登录中的坑
- 环信im集成
- 腾讯Im集成
- 融云IM集成
- 深入探讨Spring与Struts集成方案
- 深入探讨Spring与Struts集成方案
- 探讨Spring与Struts 的集成方案
- Weblogic10 与 Websphere MQ7集成方案[1]
- Weblogic10 与 Websphere MQ7集成方案[2]
- spring与struts1集成方案(一)
- spring与struts1集成方案(二)
- redmine与svn完美集成方案
- redmine与jenkins完美集成方案
- hive与hadoop、spark集成方案实践
- CSS居中元素
- Android Kotlin开发尝鲜
- vim启动和退出
- java中的匿名内部类总结
- 【前端面试】清除二维数组中元素为0所在的行和列
- IM 与 LVB 集成方案:
- 论文阅读——YouTube推荐中的深层神经网络
- java获取完整路径
- Golang 学习之路十:并发
- 3D max 渲染lightingmap的时候出现的小问题
- [李景山php] ddos 攻击 之 HTTP Flood 别名 cc攻击
- PHP学习笔记——数组下标的细节问题
- Spring中注入service时property报错 notfind dao
- gitlab上克隆远程分支到本地