[英]What does this Google Play crash report mean?
I am starting game dev. 我正在开始游戏开发。 I have been learning Game Maker studio for a while now. 我已经学习Game Maker工作室已有一段时间了。
I published my first game to Google Play. 我将第一款游戏发布到Google Play。 After ~1000 downloads I've gotten a few crash reports from a device HTC M9 only: 约1000次下载后,我仅从设备HTC M9获得了一些崩溃报告:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference
at com.jessesopanen.Little_Economist.Gamepad.iCadeDeviceName(Gamepad.java:124)
at com.jessesopanen.Little_Economist.Gamepad.EnumerateDevices(Gamepad.java:332)
at com.jessesopanen.Little_Economist.RunnerActivity.doSetup(RunnerActivity.java:541)
at com.jessesopanen.Little_Economist.DemoRenderer$2.run(DemoRenderer.java:574)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:168)
at android.app.ActivityThread.main(ActivityThread.java:5845)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
What's wrong with my game's code or is the problem with HTC M9? 我的游戏代码有什么问题还是HTC M9的问题? I have tested my game with various devices and it works fine. 我已经使用各种设备测试了游戏,并且效果很好。
I don't understand what that crash report means if someone could help me out? 我不明白如果有人可以帮助我,崩溃报告将意味着什么?
this report is just here to tell you that someone of your users have a problem with your app and the report give you the stack trace of the problem 这份报告只是在这里告诉您,您的某个用户对您的应用程序有问题,并且该报告为您提供了问题的堆栈跟踪
Your problem seems come to a java null pointer exception at line 124 this is a very generic error so read your code test it again and good luck ;) 您的问题似乎在第124行出现Java空指针异常,这是一个非常普通的错误,因此请再次阅读您的代码进行测试,祝您好运;)
at com.jessesopanen.Little_Economist.Gamepad.iCadeDeviceName(Gamepad.java:124) 在com.jessesopanen.Little_Economist.Gamepad.iCadeDeviceName(Gamepad.java:124)
===> begin by testing ===>从测试开始
if(myObject != is_undefined)
{
//your code
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.