1, 检查权限,安卓6.0以后要动态申请权限!! if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {//检查是否有了权限 if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.READ_EXTERNAL_STORAGE)) { } else { //没有权限即动态申请 ActivityCompat.requestPermissions(this, arrayOf<String>(Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE), 1) } } 2,检查文件路径,加载本地文件 videoView.setVideoPath(Environment.getExternalStorageDirectory().getAbsolutePath()+"/手机根目录的文件.mp4";)