为什么会出现这个问题?
Why does this problem occur?
public static String path;
private VideoView mVideoView;
mVideoView = (VideoView) findViewById(R.id.surface_view);
mVideoView.setVideoPath(path);
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();
//...
private int mLayout = VideoView.VIDEO_LAYOUT_ZOOM;
@Override
public void onConfigurationChanged(Configuration newConfig) {
if (mVideoView != null)
mVideoView.setVideoLayout(mLayout, 0);
super.onConfigurationChanged(newConfig);
}
您看到的错误消息是由于在本机代码中取消引用空指针引起的.从你的显示很难猜测可能是什么原因.
The error message you are seeing is caused by dereferencing a null pointer in native code. From what you show it's hard to guess what may be the cause.
在您的位置上,我会仔细检查您是否没有将空引用传递给系统或库方法.
In your place I'd double check that you're not passing a null references to a system or library method.
这篇关于致命信号 11(Sigsegv)在 0x00000000(代码=1)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!