java.lang.SecurityException: Invalid value for visibility: 2

// 下载时,不显示通知栏

  downRequest.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);

这段代码需要相应的权限 android.permission.DOWNLOAD_WITHOUT_NOTIFICATION

你可能感兴趣的:(java.lang.SecurityException: Invalid value for visibility: 2)