出现"java/lang/NullPointerException."如何解决???
请大家帮帮忙,很急!谢谢!刚才在运行一个刚做完的游戏结果也现以下问题:
Project "game" loaded
Settings updated
Project settings saved
Project settings saved
Building "game"
Build complete
Running with storage root DefaultColorPhone
Failed loading image!
Uncaught exception java/lang/NullPointerException.
请问该如何解决???????????????????
很急急!!!!!!!!!!!!!!!!!!!!!!!!!
----------------解决方案--------------------------------------------------------
空指针异常,也是一种比较常见的异常
一般是你的变量没有初始化就用了
----------------解决方案--------------------------------------------------------
谢谢!终于找到原因了,运行出来了.
----------------解决方案--------------------------------------------------------
恭喜恭喜
----------------解决方案--------------------------------------------------------