MediaLibrary.createAlbumAsync on android errors

Please provide the following:

  1. Expo sdk 34
  2. Platform: Android

I’m trying to create an album with:

const imgAsset = "file:///storage/emulated/0/DCIM/2373e8b8-ee63-41b5-8719-67423990e4f0.jpg"
      MediaLibrary.createAlbumAsync('Expo', imgAsset)
      .then(() => {
        console.log('Album created!');
      })
      .catch(error => {
        console.log('err', error);
      });

The error I get is:
err [Error: Could not get all of the requested assets]
Any idea why?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.