Bmob踩坑集合

1、implementation 'cn.bmob.android:bmob-sdk:3.7.4'不成功

现象:no implementation

原因:未知

解决方法:导入本地SDK

2、No implementation found for boolean cn.bmob.v3.helper.BmobNative.init(androi

现象:导入本地SDK,编译后,APP闪退,报No implementation found for boolean cn.bmob.v3.helper.BmobNative.init(androi

原因:so镜像未导入

解决方法:从demo中手动导入so镜像

3、Lorg/reactivestreams/Publisher

现象:点击一个包含bmob控件的activity,闪退,报Lorg/reactivestreams/Publisher

原因:缺少reactive-streams.jar包

解决方式:implementation "org.reactivestreams:reactive-streams:1.0.2"

4、Failed resolution of: Lokhttp3/MediaType

现象:点击一个包含bmob控件的activity,闪退,报Failed resolution of: Lokhttp3/MediaType

原因:https://stackoverflow.com/questions/35627123/java-lang-noclassdeffounderror-failed-resolution-of-lokhttp3-mediatype

解决方法:不能直接把okio这个jar包直接本地添加。

5、java.net.UnknownServiceException: CLEARTEXT communication to open2.bmob.cn not permitted by network security policy

现象:无法联网;

原因:https://www.jianshu.com/p/5f65656d0a06

解决方法:配置securityConfig

 

发布了4 篇原创文章 · 获赞 0 · 访问量 693
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章