bmob初始化报错


  java.lang.UnsatisfiedLinkError: No implementation found for boolean cn.bmob.v3.helper.BmobNative.init(android.content.Context, java.lang.String) (tried Java_cn_bmob_v3_helper_BmobNative_init and Java_cn_bmob_v3_helper_BmobNative_init__Landroid_content_Context_2Ljava_lang_String_2)
                                                       at cn.bmob.v3.helper.BmobNative.init(Native Method)
                                                       at cn.bmob.v3.BmobWrapper.<init>(BmobWrapper.java:48)
                                                       at cn.bmob.v3.BmobWrapper.V(BmobWrapper.java:35)
                                                       at cn.bmob.v3.BmobWrapper.Code(BmobWrapper.java:28)
                                                       at cn.bmob.v3.Bmob.initialize(Bmob.java:47)
                                                       at com.panda.flashlight.MainActivity.onCreate(MainActivity.java:14)
                                                       at android.app.Activity.performCreate(Activity.java:5983)
                                                       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2299)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2408)
                                                       at android.app.ActivityThread.access$800(ActivityThread.java:144)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                       at android.os.Looper.loop(Looper.java:135)
                                                       at android.app.ActivityThread.main(ActivityThread.java:5277)
                                                       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:919)

                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:714)


这个 是bmob3.5在用studio会报错的log

解决方案 在

build grdle

不用导包

allprojects {

 repositories {
jcenter
()
//Bmob的maven仓库地址--必填
maven
{ url "https://raw.github.com/bmob/bmob-android-sdk/master" }
}


dependencies {
compile fileTree
(dir: 'libs', include: ['*.jar'])

//以下SDK开发者请根据需要自行选择
//bmob-sdk:Bmob的android sdk包,包含了Bmob的数据存储、文件等服务,以下是最新的bmob-sdk:
//3.5.0:请务必查看下面注释[1]
compile
'cn.bmob.android:bmob-sdk:3.5.0'
}
这两个
 maven { url "https://raw.github.com/bmob/bmob-android-sdk/master" }
 //3.5.0:请务必查看下面注释[1] compile 'cn.bmob.android:bmob-sdk:3.5.0'

直接粘贴到对应位置 让系统自己去关联
智能推荐

注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告