注册唤醒出现奔溃
宝宝爱babyii 发布于2017-05-12 浏览:1338 回复:1
0
收藏

我使用的服务是:百度唤醒

调用的接口是:

参数设置情况:

开发平台和机型:Android4.4

SDK版本号:2.1.21

代码或日志截图(上传截图能帮助您更快解决问题):


05-12 13:37:36.051: E/CrashHandler(23063): java.lang.RuntimeException: Unable to start service cn.simtoy.service.WakeUpService@42c00120 with Intent { cmp=cn.simtoy.robot/cn.simtoy.service.WakeUpService }: java.lang.reflect.UndeclaredThrowableException

05-12 13:37:36.051: E/CrashHandler(23063): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2705)

05-12 13:37:36.051: E/CrashHandler(23063): at android.app.ActivityThread.access$2100(ActivityThread.java:135)

05-12 13:37:36.051: E/CrashHandler(23063): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)

05-12 13:37:36.051: E/CrashHandler(23063): at android.os.Handler.dispatchMessage(Handler.java:102)

05-12 13:37:36.051: E/CrashHandler(23063): at android.os.Looper.loop(Looper.java:136)

05-12 13:37:36.051: E/CrashHandler(23063): at android.app.ActivityThread.main(ActivityThread.java:5001)

05-12 13:37:36.051: E/CrashHandler(23063): at java.lang.reflect.Method.invokeNative(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): at java.lang.reflect.Method.invoke(Method.java:515)

05-12 13:37:36.051: E/CrashHandler(23063): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:811)

05-12 13:37:36.051: E/CrashHandler(23063): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:627)

05-12 13:37:36.051: E/CrashHandler(23063): at dalvik.system.NativeStart.main(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): Caused by: java.lang.reflect.UndeclaredThrowableException

05-12 13:37:36.051: E/CrashHandler(23063): at $Proxy0.send(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): at cn.simtoy.module.yuyin.WakeUp.startWakeUp(WakeUp.java:46)

05-12 13:37:36.051: E/CrashHandler(23063): at cn.simtoy.service.WakeUpService.onStartCommand(WakeUpService.java:67)

05-12 13:37:36.051: E/CrashHandler(23063): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2688)

05-12 13:37:36.051: E/CrashHandler(23063): ... 10 more

05-12 13:37:36.051: E/CrashHandler(23063): Caused by: java.lang.reflect.InvocationTargetException

05-12 13:37:36.051: E/CrashHandler(23063): at java.lang.reflect.Method.invokeNative(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): at java.lang.reflect.Method.invoke(Method.java:515)

05-12 13:37:36.051: E/CrashHandler(23063): at com.baidu.speech.EventContext$SmartLogger$1.invoke(EventContext.java:288)

05-12 13:37:36.051: E/CrashHandler(23063): ... 14 more

05-12 13:37:36.051: E/CrashHandler(23063): Caused by: java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.speech.easr.easrNativeJni.WakeUpFree:()I

05-12 13:37:36.051: E/CrashHandler(23063): at com.baidu.speech.easr.easrNativeJni.WakeUpFree(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): at com.baidu.speech.EventManagerWp.releaseAll(EventManagerWp.java:189)

05-12 13:37:36.051: E/CrashHandler(23063): at com.baidu.speech.EventManagerWp.send(EventManagerWp.java:90)

05-12 13:37:36.051: E/CrashHandler(23063): ... 17 more

05-12 13:37:36.051: E/CrashHandler(23063): java.lang.reflect.UndeclaredThrowableException

05-12 13:37:36.051: E/CrashHandler(23063): at $Proxy0.send(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): at cn.simtoy.module.yuyin.WakeUp.startWakeUp(WakeUp.java:46)

05-12 13:37:36.051: E/CrashHandler(23063): at cn.simtoy.service.WakeUpService.onStartCommand(WakeUpService.java:67)

05-12 13:37:36.051: E/CrashHandler(23063): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2688)

05-12 13:37:36.051: E/CrashHandler(23063): at android.app.ActivityThread.access$2100(ActivityThread.java:135)

05-12 13:37:36.051: E/CrashHandler(23063): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)

05-12 13:37:36.051: E/CrashHandler(23063): at android.os.Handler.dispatchMessage(Handler.java:102)

05-12 13:37:36.051: E/CrashHandler(23063): at android.os.Looper.loop(Looper.java:136)

05-12 13:37:36.051: E/CrashHandler(23063): at android.app.ActivityThread.main(ActivityThread.java:5001)

05-12 13:37:36.051: E/CrashHandler(23063): at java.lang.reflect.Method.invokeNative(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): at java.lang.reflect.Method.invoke(Method.java:515)

05-12 13:37:36.051: E/CrashHandler(23063): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:811)

05-12 13:37:36.051: E/CrashHandler(23063): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:627)

05-12 13:37:36.051: E/CrashHandler(23063): at dalvik.system.NativeStart.main(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): Caused by: java.lang.reflect.InvocationTargetException

05-12 13:37:36.051: E/CrashHandler(23063): at java.lang.reflect.Method.invokeNative(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): at java.lang.reflect.Method.invoke(Method.java:515)

05-12 13:37:36.051: E/CrashHandler(23063): at com.baidu.speech.EventContext$SmartLogger$1.invoke(EventContext.java:288)

05-12 13:37:36.051: E/CrashHandler(23063): ... 14 more

05-12 13:37:36.051: E/CrashHandler(23063): Caused by: java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.speech.easr.easrNativeJni.WakeUpFree:()I

05-12 13:37:36.051: E/CrashHandler(23063): at com.baidu.speech.easr.easrNativeJni.WakeUpFree(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): at com.baidu.speech.EventManagerWp.releaseAll(EventManagerWp.java:189)

05-12 13:37:36.051: E/CrashHandler(23063): at com.baidu.speech.EventManagerWp.send(EventManagerWp.java:90)

05-12 13:37:36.051: E/CrashHandler(23063): ... 17 more

05-12 13:37:36.051: E/CrashHandler(23063): java.lang.reflect.InvocationTargetException

05-12 13:37:36.051: E/CrashHandler(23063): at java.lang.reflect.Method.invokeNative(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): at java.lang.reflect.Method.invoke(Method.java:515)

05-12 13:37:36.051: E/CrashHandler(23063): at com.baidu.speech.EventCo

05-12 13:37:36.091: E/XmPlayerService(23137): Process 23063 died

05-12 13:37:36.091: E/XmPlayerService(23137): Process 23063 died

05-12 13:37:36.561: E/PushFactory(23233): getPushInstance not found push instance.

05-12 13:37:36.571: E/MscSpeechLog(23233): getMscParameter MSC return -1

复现步骤、现象及其他描述:

libs中如果没有armeabi-v7a 一定会出错 有armeabi-v7a的时候也有出现过

收藏
点赞
0
个赞
共1条回复 最后由fujiayi1984回复于2017-05-15
#2fujiayi1984回复于2017-05-15

宝宝爱babyii:

我使用的服务是:百度唤醒

调用的接口是:

参数设置情况:

开发平台和机型:Android4.4

SDK版本号:2.1.21

代码或日志截图(上传截图能帮助您更快解决问题):


05-12 13:37:36.051: E/CrashHandler(23063): java.lang.RuntimeException: Unable to start service cn.simtoy.service.WakeUpService@42c00120 with Intent { cmp=cn.simtoy.robot/cn.simtoy.service.WakeUpService }: java.lang.reflect.UndeclaredThrowableException

05-12 13:37:36.051: E/CrashHandler(23063):  at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2705)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.app.ActivityThread.access$2100(ActivityThread.java:135)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.os.Handler.dispatchMessage(Handler.java:102)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.os.Looper.loop(Looper.java:136)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.app.ActivityThread.main(ActivityThread.java:5001)

05-12 13:37:36.051: E/CrashHandler(23063):  at java.lang.reflect.Method.invokeNative(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063):  at java.lang.reflect.Method.invoke(Method.java:515)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:811)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:627)

05-12 13:37:36.051: E/CrashHandler(23063):  at dalvik.system.NativeStart.main(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): Caused by: java.lang.reflect.UndeclaredThrowableException

05-12 13:37:36.051: E/CrashHandler(23063):  at $Proxy0.send(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063):  at cn.simtoy.module.yuyin.WakeUp.startWakeUp(WakeUp.java:46)

05-12 13:37:36.051: E/CrashHandler(23063):  at cn.simtoy.service.WakeUpService.onStartCommand(WakeUpService.java:67)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2688)

05-12 13:37:36.051: E/CrashHandler(23063):  ... 10 more

05-12 13:37:36.051: E/CrashHandler(23063): Caused by: java.lang.reflect.InvocationTargetException

05-12 13:37:36.051: E/CrashHandler(23063):  at java.lang.reflect.Method.invokeNative(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063):  at java.lang.reflect.Method.invoke(Method.java:515)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.baidu.speech.EventContext$SmartLogger$1.invoke(EventContext.java:288)

05-12 13:37:36.051: E/CrashHandler(23063):  ... 14 more

05-12 13:37:36.051: E/CrashHandler(23063): Caused by: java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.speech.easr.easrNativeJni.WakeUpFree:()I

05-12 13:37:36.051: E/CrashHandler(23063):  at com.baidu.speech.easr.easrNativeJni.WakeUpFree(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.baidu.speech.EventManagerWp.releaseAll(EventManagerWp.java:189)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.baidu.speech.EventManagerWp.send(EventManagerWp.java:90)

05-12 13:37:36.051: E/CrashHandler(23063):  ... 17 more

05-12 13:37:36.051: E/CrashHandler(23063): java.lang.reflect.UndeclaredThrowableException

05-12 13:37:36.051: E/CrashHandler(23063):  at $Proxy0.send(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063):  at cn.simtoy.module.yuyin.WakeUp.startWakeUp(WakeUp.java:46)

05-12 13:37:36.051: E/CrashHandler(23063):  at cn.simtoy.service.WakeUpService.onStartCommand(WakeUpService.java:67)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2688)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.app.ActivityThread.access$2100(ActivityThread.java:135)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.os.Handler.dispatchMessage(Handler.java:102)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.os.Looper.loop(Looper.java:136)

05-12 13:37:36.051: E/CrashHandler(23063):  at android.app.ActivityThread.main(ActivityThread.java:5001)

05-12 13:37:36.051: E/CrashHandler(23063):  at java.lang.reflect.Method.invokeNative(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063):  at java.lang.reflect.Method.invoke(Method.java:515)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:811)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:627)

05-12 13:37:36.051: E/CrashHandler(23063):  at dalvik.system.NativeStart.main(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063): Caused by: java.lang.reflect.InvocationTargetException

05-12 13:37:36.051: E/CrashHandler(23063):  at java.lang.reflect.Method.invokeNative(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063):  at java.lang.reflect.Method.invoke(Method.java:515)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.baidu.speech.EventContext$SmartLogger$1.invoke(EventContext.java:288)

05-12 13:37:36.051: E/CrashHandler(23063):  ... 14 more

05-12 13:37:36.051: E/CrashHandler(23063): Caused by: java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.speech.easr.easrNativeJni.WakeUpFree:()I

05-12 13:37:36.051: E/CrashHandler(23063):  at com.baidu.speech.easr.easrNativeJni.WakeUpFree(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.baidu.speech.EventManagerWp.releaseAll(EventManagerWp.java:189)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.baidu.speech.EventManagerWp.send(EventManagerWp.java:90)

05-12 13:37:36.051: E/CrashHandler(23063):  ... 17 more

05-12 13:37:36.051: E/CrashHandler(23063): java.lang.reflect.InvocationTargetException

05-12 13:37:36.051: E/CrashHandler(23063):  at java.lang.reflect.Method.invokeNative(Native Method)

05-12 13:37:36.051: E/CrashHandler(23063):  at java.lang.reflect.Method.invoke(Method.java:515)

05-12 13:37:36.051: E/CrashHandler(23063):  at com.baidu.speech.EventCo

05-12 13:37:36.091: E/XmPlayerService(23137): Process 23063 died

05-12 13:37:36.091: E/XmPlayerService(23137): Process 23063 died

05-12 13:37:36.561: E/PushFactory(23233): getPushInstance not found push instance.

05-12 13:37:36.571: E/MscSpeechLog(23233): getMscParameter MSC return -1

复现步骤、现象及其他描述:

libs中如果没有armeabi-v7a 一定会出错 有armeabi-v7a的时候也有出现过

回复宝宝爱babyii:

您能否测试下我们官网下载的demo,有无此问题。也可以百度下您的报错原因“Native method not found”

0
TOP
切换版块