android开发:App错误问题

时间:2012-05-31 02:02:07

标签: android android-logcat

我有一个Android应用程序在谷歌播放,我有几个人报告了这个错误。但我不知道它意味着什么,出了什么问题。如果有人可以帮助我,告诉我问题是什么,或者有什么建议会很好。谢谢你的帮助。

 java.lang.NullPointerException
 at android.media.MediaPlayer.add_mm_settings(MediaPlayer.java:1855)
 at android.media.MediaPlayer.setDataSource(MediaPlayer.java:798)
 at android.widget.VideoView.openVideo(VideoView.java:225)
 at android.widget.VideoView.access$2000(VideoView.java:49)
 at android.widget.VideoView$6.surfaceCreated(VideoView.java:482)
 at android.view.SurfaceView.updateWindow(SurfaceView.java:551)
 at android.view.SurfaceView.dispatchDraw(SurfaceView.java:348)
 at android.view.ViewGroup.drawChild(ViewGroup.java:1730)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1459)
 at android.view.ViewGroup.drawChild(ViewGroup.java:1730)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1459)
 at android.view.ViewGroup.drawChild(ViewGroup.java:1730)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1459)
 at android.view.View.draw(View.java:6973)
 at android.widget.FrameLayout.draw(FrameLayout.java:357)
 at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1949)
 at android.view.ViewRoot.draw(ViewRoot.java:1600)
 at android.view.ViewRoot.performTraversals(ViewRoot.java:1321)
 at android.view.ViewRoot.handleMessage(ViewRoot.java:1957)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:150)
 at android.app.ActivityThread.main(ActivityThread.java:4306)
 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:839)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 at dalvik.system.NativeStart.main(Native Method)

1 个答案:

答案 0 :(得分:1)

也有这个问题。将ACCESS_NETWORK_STATE权限添加到我的AndroidManifest.xml解决了这个问题。

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />