权限拒绝:在Recyclerview上打开提供程序com.android.providers.media.MediaDocumentsProvider

时间:2019-05-28 14:44:29

标签: java android firebase firebase-storage

当我从存储(Firebase)调用图像时,出现此错误:

> "java.lang.SecurityException: Permission Denial: opening provider
> com.android.providers.media.MediaDocumentsProvider from ProcessRecord
> requires that you obtain access using ACTION_OPEN_DOCUMENT or related
> APIs"

我想与所有用户进行recyclerview,我收到所有信息(名称和有关用户的其他信息),但没有图像。 我在Adapter上将信息称为recyclerview:

 @Override
public void onBindViewHolder(@NonNull SearchViewHolder searchViewHolder, int position) {
    searchViewHolder.tv_title.setText(mData.get(position).getUsername());
    searchViewHolder.tv_content.setText(mData.get(position).getUserEmail());
    Glide.with(mContext).load(mData.get(position).getUserimg()).into(searchViewHolder.img_user_final);
    Log.d("teste", mData.get(position).getUserimg());

}

0 个答案:

没有答案