E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/DCIM/Camera/20230325_095118.jpg: open failed: EACCES (Permission denied)
找到AndroidMainfest.xml中
找到<application>标题,加入
<application android:allowBackup="true" android:dataExtractionRules="@xml/data_extraction_rules" android:fullBackupContent="@xml/backup_rules" android:icon="@mipmap/ivyun2" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/Theme.MyApplication" tools:targetApi="31" tools:replace="android:appComponentFactory" android:appComponentFactory="androidx" android:usesCleartextTraffic="true" android:requestLegacyExternalStorage="true" >
android:requestLegacyExternalStorage="true这一条。