3

我在 Google Play 上有一个 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)
4

1 回答 1

1

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

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
于 2012-06-14T03:45:13.733 回答