Fix Android Process Media Has Stopped Error
In this article
To get rid of the "Unfortunately the process android process media has stopped" error, you must clear the cache and data of the Media Storage system app and restart your device. This error typically occurs when the Android Media Scanner encounters a corrupted file or a database error while indexing your photos, videos, and audio files, causing the system process to crash repeatedly.
What You'll Need
- An Android device experiencing the error.
- A backup of your important media files (recommended before performing deep cache clears).
- Sufficient battery life or a charger to ensure the device does not power off during a system restart.
Step-by-Step
Note: Menu labels and paths may differ slightly depending on your device manufacturer (Samsung, Pixel, Xiaomi, etc.), your version of Android, or your regional settings.
- Restart Your Device: Before diving into system settings, perform a simple restart. This clears temporary glitches in the RAM that might be causing the Media process to hang. Hold the power button and select Restart. If the error persists after the reboot, proceed to the next step.
- Enable System Apps in Settings: The Media Storage process is a system-level application and is hidden by default in the standard apps list. To find it, go to Settings > Apps (or Apps & notifications). Once in the app list, look for a menu icon (three dots) or a filter option and select "Show system processes" or "Show system apps."
- Locate Media Storage: Scroll through the alphabetical list of all apps until you find "Media Storage." Tap on it to open the App Info page.
- Clear the Cache: Tap on Storage (or Storage & cache). Select "Clear Cache." This removes temporary files that may be corrupted without deleting your actual media library data. Restart the phone and check if the error is gone.
- Clear Data/Storage: If clearing the cache did not work, return to the Storage menu for Media Storage and select "Clear Data" or "Clear Storage." Warning: This will not delete your photos or videos, but it will delete the database that indexes them. Your gallery may appear empty for a few minutes after this step while Android rescans the entire internal storage.
- Force Stop the Process: On the Media Storage App Info page, tap the "Force Stop" button. This kills the current crashed instance of the process, allowing it to start fresh upon the next reboot.
- Check for Corrupt Media Files: If the error returns immediately after a rescan, it is likely caused by a specific corrupted file (like a half-downloaded video or a damaged image) that the scanner cannot read. Connect your phone to a computer via USB and scan your folders for files with 0 KB size or files with missing extensions. Move these files off the device or delete them.
- Update System Software: Go to Settings > System > System Update (or Software Update). Install any pending updates, as manufacturers often release patches for system process crashes.
Common Mistakes
One of the most frequent mistakes users make is searching for "Media Storage" in the app list without first enabling the "Show system processes" toggle. Because it is a core OS component, it will not appear in the standard user-facing app list, leading many to believe the app is missing from their device.
Another common error is panicking when the Gallery app appears empty after clearing the Media Storage data. Users often assume they have deleted their photos. In reality, the index has been wiped, and the Android Media Scanner is simply rebuilding the library. Interrupting this process by repeatedly restarting the phone can actually prolong the time it takes for photos to reappear.
Some users attempt to fix this by uninstalling other media-related apps (like third-party gallery apps or music players). While a third-party app might be triggering the crash, uninstalling them randomly without identifying the culprit is inefficient and doesn't address the underlying corrupted database in the system process.
Tips
To prevent this error from returning, avoid using "cleaner" apps that claim to optimize your Android system. These apps often delete essential index files or move files into hidden folders that confuse the Android Media Scanner, which can lead to the process crashing when it tries to find a file that the cleaner app has moved.
If you frequently download large files or move media between SD cards and internal storage, try to do so using a dedicated File Manager app rather than through the gallery. This ensures that file transfers are completed fully and reduces the chance of leaving "ghost" files or corrupted fragments that trigger the Media process crash.
Keep your SD card healthy. If you are using an external memory card, a failing card with "bad sectors" can cause the Media Storage process to crash every time it attempts to index a file located on that specific sector of the card. Periodically formatting your SD card (after backing up data) can help maintain a clean file system.
Troubleshooting
If the steps above do not resolve the issue, try these more advanced recovery methods in order of risk:
Boot into Safe Mode: Press and hold the power button, then long-press the "Power Off" option on the screen until the "Safe Mode" prompt appears. In Safe Mode, only pre-installed apps run. If the error disappears, a third-party app you downloaded is causing the Media process to crash. You will need to uninstall recently added apps one by one to find the culprit.
Remove the SD Card: Power off the device and physically remove the microSD card. Turn the device back on. If the error stops, the problem is definitely a corrupted file or a failing chip on the SD card. You can then insert the card into a PC to run a disk check (chkdsk) to repair file system errors.
Wipe Cache Partition: This is different from clearing app cache. Boot your device into Recovery Mode (usually by holding Power + Volume Down during startup). Use the volume buttons to navigate to "Wipe Cache Partition" and the power button to select it. This clears the system-wide cache without deleting your personal data.
Factory Data Reset: As a last resort, perform a factory reset. Warning: This will erase all data on your device, including apps, photos, and contacts. Ensure you have a full cloud or local backup before proceeding. Go to Settings > System > Reset options > Erase all data (factory reset).
Frequently Asked Questions
Will clearing Media Storage data delete my photos?
No, it will not delete your actual photo or video files. It only deletes the database that tells Android where those files are located. Your files remain on the storage, and the system will automatically find them again during the next scan.
Why does this error keep popping up every few minutes?
This usually happens because the Media Scanner is stuck in a loop. It tries to scan a corrupted file, crashes, restarts, and then attempts to scan that same corrupted file again. This creates a continuous cycle of "Process has stopped" notifications.
Can a virus cause the Android Media process to stop?
While less common, malware that modifies system files or floods the storage with junk files can overwhelm the Media Storage process. Running a scan with a reputable mobile security app from the Google Play Store can help rule this out.
Does updating my Android version fix this?
Yes, in many cases. System process crashes are often bugs in the OS code. Manufacturers release monthly security and stability updates that specifically target these types of crashes to improve overall system reliability.
What is the "Android Media Scanner" exactly?
It is a background service that searches your device for media files (MP3s, JPEGs, MP4s) and adds them to a central database so that apps like the Gallery or Music player can display them instantly without having to search the whole disk every time they open.