Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

集成sdk源码报错:More than one file was found with OS independent path 'lib/armeabi/libweexjsb.so' #2232

Closed
fanlvwen opened this issue Mar 21, 2019 · 18 comments
Labels

Comments

@fanlvwen
Copy link

使用weex sdk源码依赖,代码为incubator-weex下最新sdk,
version = project.hasProperty('weexVersion')? project.getProperty('weexVersion') : "0.20.0.1"

安卓项目运行报错:
More than one file was found with OS independent path 'lib/armeabi/libweexjsb.so'

debug配置为: compile 'com.taobao.android:weex_inspector:0.20.3.0-beta'
okhttp: compile 'com.squareup.okhttp:okhttp:2.3.0'
compile 'com.squareup.okhttp:okhttp-ws:2.3.0'
系统环境:
image

@fanlvwen fanlvwen added the Bug label Mar 21, 2019
@fanlvwen
Copy link
Author

项目gradle改成2.3.3,不报上面的错了,但是启动app直接崩溃
image

依赖源码和直接gradle:compile 'com.taobao.android:weex_sdk:0.20.3.0-beta'
都是这个崩溃

@fanlvwen
Copy link
Author

补充:启用debug会崩,直接用打包出来的js没问题

@fanlvwen
Copy link
Author

包括incubator-weex 主分支下的项目,直接硬编码开启debug,也是崩溃,日志和上面我自己的项目一样
image

@Darin726
Copy link
Contributor

能否用 arm-linux-androideabi-addr2line -piCfe /path/libweexcore.so 00xxxxx 解开看看具体的代码文件在发上来看下

@fanlvwen
Copy link
Author

能否用 arm-linux-androideabi-addr2line -piCfe /path/libweexcore.so 00xxxxx 解开看看具体的代码文件在发上来看下

能麻烦描述具体一点吗? 对so文件不熟悉怎么操作

@fanlvwen
Copy link
Author

image
还有这个n你看一下,文档上说cmake要3.9+,但是我这个报错,切换成3.6那个才行

@Darin726
Copy link
Contributor

可以参考 https://stackoverflow.com/questions/5314036/how-to-use-addr2line-in-android 这个去解开堆栈.

在 Android 目录下 使用 find ./ -iname libweexcore.so -exec ls -lah {} ; 找到对应带堆栈的 libweexcore.so

@fanlvwen
Copy link
Author

fanlvwen commented Mar 22, 2019

可以参考 https://stackoverflow.com/questions/5314036/how-to-use-addr2line-in-android 这个去解开堆栈.

在 Android 目录下 使用 find ./ -iname libweexcore.so -exec ls -lah {} ; 找到对应带堆栈的 libweexcore.so

image
你好,帮忙看一下
但是这个报错怎么是我系统ndk的

@Darin726
Copy link
Contributor

补充:启用debug会崩,直接用打包出来的js没问题

启用 debug 是指 weex 的 debug 吗, 还是 Androidstudio 的 debug

@fanlvwen
Copy link
Author

补充:启用debug会崩,直接用打包出来的js没问题

启用 debug 是指 weex 的 debug 吗, 还是 Androidstudio 的 debug

image
是指直接在application中启动weex 的debug,androidstudio只是run了app,没有其他操作

@fanlvwen
Copy link
Author

@Darin726 请问能定位吗? 一直卡在这里了,不开application里不开debug就没事,开了就崩溃

@fanlvwen
Copy link
Author

我找出一个规律,
image
这个WXEnvironment.sRemoteDebugMode 一开始就置为true的话,就崩溃。
置为false的话,app启动后浏览器会打开
image
c此时jsDebug为关闭状态 需手动开启,但是开启之后,app页面空白
image

android studio报错日志如下:
image

image

代码环境为incubator-weex-0.20.3.0-beta分支下源码

@pdrsnow
Copy link

pdrsnow commented Mar 22, 2019

导入这俩个依赖WXEnvironment.sRemoteDebugMode=true时不会崩溃,
api 'com.taobao.android.weex_inspection:urlconnection_interceptor:1.0.0'
api 'com.taobao.android.weex_inspection:protocol:1.0.2'
但是debug界面依旧空白,开启网络调试后,在浏览器上网络监控模块可以看到加载了当前js文件

@fanlvwen
Copy link
Author

导入这俩个依赖WXEnvironment.sRemoteDebugMode=true时不会崩溃,
api 'com.taobao.android.weex_inspection:urlconnection_interceptor:1.0.0'
api 'com.taobao.android.weex_inspection:protocol:1.0.2'
但是debug界面依旧空白,开启网络调试后,在浏览器上网络监控模块可以看到加载了当前js文件

你的weex sdk和interceptor版本是什么 是最新的0.20.3.0-beta吗

@pdrsnow
Copy link

pdrsnow commented Mar 22, 2019

TIM截图20190322181722
TIM截图20190322181745
问题依旧

@fanlvwen
Copy link
Author

TIM截图20190322181722
TIM截图20190322181745
问题依旧

唉 新版debug玩不起来

@YorkShen YorkShen added Tools and removed Bug labels Mar 26, 2019
@YorkShen
Copy link
Contributor

感谢你的反馈,Weex目前是隶属于Apache Software Foundation的项目,因此在Gtihub渠道我们鼓励使用英文反馈问题。下面我将使用Google Trasnlate将你的问题翻译成英语,并以英语回答。

Question Description: Weed sdk problem under branch 0.20.3.0-beta

Again, I think this is a bug about dev-tool, you should ask it in the weex-toolkit, not this repos.

But as you discussion happened here for a while, I think you could continue this time, but ask question about dev-tool in weex-toolkit next time.

Thanks

@YorkShen
Copy link
Contributor

It seems there is no updating about this question.

I will just close it, feel free to reopen it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants