问题描述
我已将我的Android应用上传到 Google Play 。我的应用程序运行良好。但在某些设备上,它有一些问题。无论何时我的应用程序崩溃,Google Play Developer Console收到该错误。它就像:
java.lang.RuntimeException:无法启动活动ComponentInfo {com.asdasd.dfgdfgdfgd / com.asdasd.dfgdfgdfgd .SplashScreenActivity}:android.view.InflateException:二进制XML文件行#19:在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1659)
处android android.widget.ImageView
错误.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
at android.app.ActivityThread.access $ 1500(ActivityThread.java:121)
at android.app.ActivityThread $ H.handleMessage(ActivityThread。 java:943)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app .ActivityThread.main(ActivityThread.java:3701)
at java.lang.reflect.Method.invokeNative(Native Method)$ b $ at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal。 os.ZygoteInit.main(ZygoteInit.java:624)
在dalvik.system.NativeStart.main(本地方法)
导致:android.view.InflateException:二进制XML文件行#19:错误膨胀类android.widget.ImageView
at android.view.LayoutInflater.createView(LayoutInflater.java:518)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)在android.view.LayoutInflater.inflate上
(LayoutInflater.java:408)
at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:227)
这种Log我无法找到哪个Android设备产生该错误&用什么android操作系统。
是否有任何方法可以将自定义日志发送到Application Crash上的开发人员控制台?
不,Android自动错误报告不值得使用。用户注释与错误分开,并且您没有指明它来自哪个设备。
尝试,因为它更加全面和免费,适用于低使用率。您可以使用此功能为您的日志添加自定义添加项,但仅限于付费账户。
更新:
Bugsense现在是Splunk。另一个选项是
I had uploaded my android application to Google Play. My application is running fine. But on some devices, it have some issues. Whenever my application gets crashed Google Play Developer Console received that error. It's like:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.asdasd.dfgdfgdfgd/com.asdasd.dfgdfgdfgd.SplashScreenActivity}: android.view.InflateException: Binary XML file line #19: Error inflating class android.widget.ImageView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1659)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
at android.app.ActivityThread.access$1500(ActivityThread.java:121)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3701)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #19: Error inflating class android.widget.ImageView
at android.view.LayoutInflater.createView(LayoutInflater.java:518)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:227)
With this kind of Log i can't find which android device producing that error & with what android OS.
Is there any way to send custom Logs to developer console on Application Crash?
No and the Android automatic error reporting is not worth using. The user comments are separated from the error and you get no indication of which device it came from.
Try out http://www.bugsense.com/ as it is much more comprehensive and free for low usage. You can add custom additions to your logs with this but only on the paid accounts.
Update:Bugsense is now Splunk. Another option is https://fabric.io
这篇关于如何将自定义日志发送到Google Play开发者控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!