Published on
Last update:

An error has occurred in app: how to fix it


While working with the file system of a smartphone, users may receive a notification stating that "an error has occurred in app". What does it mean? 

Table of Contents

What is responsible for

Photos, audio, and video stored in the memory of your device are used by various apps. Android only allows apps to access the list of required files instead of all the system content, and’s main responsibility is accounting for and classifying access permissions.

In what cases can fail?

An error can occur in for the following reasons:

  1. Conflicts in the  file name or dependencies on Android’s OS.
  2. Errors in the software working with the user data.
  3. Incorrect deletion of media files on the phone.
  4. Overload of the system with a large number of photos, videos, or audio recordings (i.e. the lack of space in your phone memory).
  5. Image folders having the same name on both an SD card and in the internal memory of a device.

In Android 4.3 and later versions, the error occurs very rarely. It has nothing to do with virus attacks, so there is no need to worry about the information you store.

The ways to fix an error

After receiving a system notification stating that an error has occurred (for example, "unfortunately has stopped"), the device owner can use one of the following methods to eliminate the error. 

Method 1. Clearing the app’s cache

This is the first method to try, since in most cases an app crashes due to a mismatch between its cache and the actual location of files.

  1. Open the “Settings” menu and go to the “Apps” section.
  1. Turn on the "Show system apps" option from the menu in the top right corner.
  1. In the opened list, find the "Downloads" app (or "Download Manager", depending on the version of your Android) and run it.
  1. Go to the "Storage" section and tap the "Clear cache" and "Clear data" buttons.
  1. Go back to the list of apps and clear the cache of the "File manager", "Media storage", and "Google Music".
  1. Restart your Android phone, tapping on the Power button.

By the way: you can find our articles about clearing cache here and here. We've described there how to safely clear your cache and what apps you might need to do so. 

Method 2. Deleting Google Services Framework and Play Store data

If the previous method doesn't work, try to fix the error by modifying media file data and Google Services Framework data. 

  1. Go to Android “Settings” and open the "Apps" tab.

  2. Open “Google Services Framework”, then tap "Force stop".

  3. Go to "Storage", then clear cache, and delete data.

  4. Perform the same actions with the Google Play Store from the "Apps" menu.

  5. Restart your device.

This method is likely to help you prevent the error from repeating. In general, it's better to apply both methods at the same time.

Method 3. Disabling Google sync

  1. Open the "Settings" menu and select"Accounts" (or "Accounts and Backup" for Samsung Galaxy users).

  2. In the opened menu, find "Auto sync data" and turn it off.

This will result in being stopped for all Google apps, and therefore it should stop failing.

Method 4. Rolling back to factory settings on Android

The above methods of troubleshooting the error are quite soft: they don't affect the data stored in the device memory and on its external card. If they don’t work, there are more drastic measures. They're certain to help to solve the problem, but all the information from the internal memory of your phone will be deleted.

NB! Before performing a Hard Reset, make sure you create a backup of the important files in your phone memory. You don’t need to backup your SD card, as a Hard Reset won't affect it. 

You can roll back the settings in the following way:

  1. Tap the “Settings” menu (“Settings” > “General management” for Samsung Galaxy).

  2. Find the "Reset" tab and tap the "Reset settings" item.

  3. Read the message describing which files specifically will be destroyed.

  4. Confirm the reset.

Note: We've described how to perform a Hard Reset in a more detailed way here, along with all the pros and cons of this method. 

Performing it will roll the system back to its factory settings and the problem related to will be resolved.

Method 5. Ejecting an SD card from a phone

The most unpleasant cause of the error might be a malfunctioning memory card. The clearest sign of this is the inability to open certain files on external media storage devices. If this is the issue you are experiencing, there is only one long-term solution: replace your SD card with a new one.

You can try to download apps directly into the internal memory of your device (of course, only if its volume allows it), but before installing an app from Google Play, you'll have to eject the SD card from your device. This method has its own disadvantages:

  • If a media slot is covered by a case or battery, it's very inconvenient to extract an SD card;
  • Frequent removal can damage both the slot and memory card itself;
  • Each new downloaded app reduces the amount of free memory in the internal memory of the device.

Another possible option we recommend is formatting your SD card (while it's inserted in a device).

  1. Transfer all the files you need to the device’s internal memory or to your computer in advance.
  2. Format your SD card (for example, via this program).
  3. Copy the saved data (point 1) back to the memory card.

A few tips on

In order to avoid the error, stick to the following recommendations:

  • Install updates for all downloaded apps. New versions can eliminate the cause of failure.
  • If there is an update for Android 4.3 or later, we advise you to download and install it. In these versions, the file system error occurs extremely rarely.
  • Another effective way is to create an empty .nomedia file. This file is placed in every folder which you want to exclude from the checking. The media check then monitors only the folders without .nomedia in them. This reduces the chance of the error occuring.

Vlad Brown, USA, Buffalo, WY

Vlad is a professional writer. He has expert knowledge in data recovery with 15 years of experience. He started his career as a journalist by reviewing PC and mobile apps. His current responsibilities are to keep track of users' questions and answer them. 

His current responsibilities are to keep track of users' questions and provide answers to them, write proven manuals, be the website technical support and also run a Youtube channel.

Vlad's recent reviews: