Download unsuccessful как исправить

This is my first time trying to implement DownloadManager and no matter what I try, I always get a notification saying «Download unsuccessful.» I’ve looked at many other SO forums, a few tutorials, and what I have should work. Yes, I’ve set internet and external storage permissions in the manifest file. And yes, I’ve given storage permission in the app settings on the phone. I’ve tried this on both an Android emulator running API 28 and a real phone running the same. Here is the code I have:

        String url = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4";

        DownloadManager downloadManager = (DownloadManager)getSystemService(DOWNLOAD_SERVICE);
        DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));

        request.setTitle("title");

        request.setDescription("Your file is downloading");

        request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);

        request.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, "" + System.currentTimeMillis());

        request.allowScanningByMediaScanner();
        request.setAllowedOverMetered(true);
        request.setAllowedOverRoaming(true);

        //Enqueue download and save the referenceId
        long downloadReference = downloadManager.enqueue(request);

        if (downloadReference != 0) {
            Toast.makeText(getApplicationContext(), "download started", Toast.LENGTH_SHORT).show();
        }else {
            Toast.makeText(getApplicationContext(), "no download started", Toast.LENGTH_SHORT).show();
        }

Any help or suggestions are appreciated. Thanks.

asked Dec 10, 2019 at 4:29

Ethan Shoe's user avatar

5

This issue occur due to network security. If You are using un-secure url in above pie API, then it can’t execute your url. Check Official Documentation.

Reason for avoiding cleartext traffic is the lack of confidentiality,
authenticity, and protections against tampering; a network attacker
can eavesdrop on transmitted data and also modify it without being
detected.

Add following in manifest to bypass all security.

<application
  android:name=".ApplicationClass"
  ....
  android:usesCleartextTraffic="true">

answered Dec 10, 2019 at 5:16

Abhay Koradiya's user avatar

Abhay KoradiyaAbhay Koradiya

2,0482 gold badges15 silver badges40 bronze badges

2

My Experience on 1/11/2021, min SDK 19, Target SDK 30

I spent a day on using Download Service and finally it worked.
To sum it up for anyone who wants to try for the first time:

  1. Dont’t forget to add WRITE_EXTERNAL_STORAGE and INTERNET permissions in Manifest.
  2. use requestPermissions() to grant permission from user.
  3. use getExternalFilesDir() instead of getExternalStorageDirectory().
  4. If you’re downloading from http:// so add usesCleartextTraffic=»true» to manifest.

answered Jan 11, 2021 at 17:11

Ehsan's user avatar

EhsanEhsan

3771 gold badge2 silver badges10 bronze badges

Are you one of those who is getting “Download unsuccessful” error in Google Play? If yes, you don’t have to worry anymore. “Download unsuccessful” error is a common error  in Google Play Store. Generally, this error occurs while installing or updating the apps or game from Play Store. The error might be accompanied by some code number. At some point user will get the “Download unsuccessful” error.  Here is how you can fix this problem:

"Download unsuccessful"

Try the below step before jumping to main solution, it may solve you issue.

end call power buttoni) Re-start your device: Sometime just by re-starting your device can solve the issue.
-Unlock the screen of the devices.
-Press and hold the “Power” button until a menu appears.
• Select “Power off“.
• Wait for the device to power off.
• Wait 10 seconds, then press and hold the “Power” button to power the device back ON.
• After that, try to download the app again. It may solve your error problem.

ii) Check your Internet Connection:
It has found that slow or unstable internet connection could be the reason behind the error. So, you have to check your internet connection to be confirmed whether internet connection is the culprit or not. Either you are using Wi-Fi or mobile data, you can easily check. Just launch the browser and try to open any site. If the site opens perfectly fine then you will know that internet connection is not the problem.

iii) Make sure you have enough Memory:
Lack of memory is also one of the causes of this error. So, make sure you have enough memory in your phone storage (if you are using phone storage to store the downloaded apps and others) also in your memory card (if you are using memory card to store the downloaded apps or others) To check the Storage: Go to Settings >> Select “Storage

If you are unable to fix the problem by now then you can follow the given methods.

play storeFirst Method: Clearing Cache and Data

  • Go to Setting>> Go to Apps or Application manager (depending on your device, this may be different).
  • Go to, All the apps >>Find the Google Play Store >> Clear Cache and Data >> Tap on Force Stop
  • Now, Select Downloads or Download Manager (depending on your device, this may be different) >> Clear cache and data.
  • Also, Find Google Services Framework>> Clear Cache and data
  • Similarly, Find the Google Play Service >> Clear Cache and Data
  • Now, Restart your device and try to download the app.

Most of the time cached data is responsible for the error. So, Clearing Cache and data should fix your issue. If you are still receiving the Error message, continue the below method.

Remove Google AccountSecond Method: Remove and Add Google Account

  • Go to Setting>> Accounts >> Google
  • You will see three dots on the top right corner of the screen, click on it
  •  Remove all your Google accounts
  • Now, Restart your device
  •  Then go back to Google play store and Sign–in your account information
  •  Accept all the Google terms and setup Google settings then Run Google Play Store and download the app

Uninstall UpdatesThird Method: Reinstall Google Play Store Updates

  • Go to Setting>> Go to Apps or Application manager (depending on your device, this may be different).
  • Go to, All the apps > >Find the Google Play Store >> Uninstall Updates
  • The Play Store is back to factory version.
  • Connect to internet (Wi-Fi or mobile data) and update the play store.
  • Now Restart your device and try to download the app

 factory resetFourth Method: Factory Reset your Phone

Resetting your phone will erase all the data and information, downloaded app and all such things but you can back up your data and information, app and other thing before resetting the phone.

This is the last method to get rid of the error.

  • Go to Setting >> Scroll down and select Backup & reset option
  • Once you click Backup & reset >> Other option will appear
  • Click on Factory Data reset

You will get your Phone software fresh as if you have just brought it as all the setting  procedure you will need to setup again. This should fix the error.

So, these are some of the methods to fix “Download unsuccessful” error in Google Play Store. Let us know which method worked for you.

[quote bcolor=”gray” arrow=”yes”]Also Read:

  • Google Play error 911 fix
  • How to Fix “Check your connection and try again” Error in Google Play Store
  • How to Fix “Authentication is required” Error in Google Play Store [/quote]

Недавно я начал получать сообщения об ошибке «Загрузка неуспешна» на устройстве Android при каждой попытке обновить или загрузить приложение с помощью Google Play. Кажется, это общая ошибка для всей линейки устройств Android. К счастью, это было легко для меня. Если вы столкнулись с той же проблемой, попробуйте эти шаги.

Исправление 1 — перезагрузка

Сначала отключите питание и перезапустите устройство. Обязательно выключите его полностью.

  1. Разблокировать экран.
  2. Нажмите и удерживайте кнопку « Питание », пока не появится меню.
  3. Выберите « Выключить ».
  4. Подождите, пока устройство выключится.
  5. Подождите 10 секунд, затем нажмите и удерживайте кнопку « Питание », чтобы снова включить устройство.

Посмотрите, можете ли вы загружать предметы сейчас.


Исправление 2 — очистить данные приложения

Если отключение питания не помогло устранить проблему, попробуйте выполнить следующие действия.

  1. Откройте « Настройки ».
  2. Выберите « Приложения ».
  3. Выберите « Управление приложениями ».
  4. Нажмите на вкладку « Все », затем прокрутите вниз и выберите « Google Play Store » .
  5. Выберите « Хранение ».
  6. Выберите « Очистить кеш » и « Очистить данные ».
  7. Выйдите из экрана и выберите « Диспетчер загрузки » (также может быть указан как «Загрузки»).
  8. Выберите « Очистить кеш » и « Очистить данные ».
  9. Также удалите данные для « Служб Google », « Служб Google », « Google Hangouts » и « Службы регистрации ». Некоторые пользователи сообщают, что им также нужно было очистить данные для приложений « Браузер » и « Chrome ». Вы можете не видеть все эти приложения, перечисленные на вашем конкретном устройстве.

Посмотрите, работает ли загрузка из Google Play сейчас.

Конечно, это работает с любым устройством Android.

I’m constantly harassed by these «<Untitled> Download unsuccessful.» notifications.

<Untitled> Download unsuccessful.

After taking the above screenshot, I cleared the entire notifications list. Within the next three minutes (usually even less), the list was already overflowing again.

<Untitled> Download unsuccessful.

I’ve learned to manage the symptom by navigating to the Download Manager application settings; hitting FORCE STOP, followed by CLEAR DATA, and CLEAR CACHE. Although the notifications slowly start showing up again. Just one at first, but gradually increasing in number with each occurance. Within a day or two, the numbers are usually back out of control.

Download Manager application settings
Download Manager application settings

I have no idea what it’s supposedly attempting to download, or why. But whatever it is, it’s not instigated by myself. I could just disable download notifications, but I’d rather identify the underlying problem and kill it directly. Needless to say, I’m not too keen on my devices automatically trying to download random mystery files from the internet. Any ideas? Thanks.

FYI: The device in question is a ZTE Blade L5 smartphone.

Are you getting “Download unsuccessful” Google Play error on your Android device?

If yes, there is no need to be worried too much because it’s one of the most common Google play store errors.

Generally, Download unsuccessful error appears on your android device screen whenever you try to upgrade or download an Android app from Google Play Store. I have also faced this Google Play error on my Android smartphone.

google play download unsuccessful error

Thankfully, some very helpful ways are available to fix download unsuccessful Google play error on your Android devices. In today’s (how to fix) guide, I am going to explain – how you can easily fix Google play “Download unsuccessful” error.

See also: How to fix “Cannot delete folder: The directory is not empty” Error

There are multiple ways to fix the Google play download unsuccessful error, but here i am sharing only two most effective and helpful methods. Follow the step by step guide in order to fix the Google play store error:

Method 1: Power off Android Device

  • First of all, Unlock the screen of your android device.
  • After that, Press and hold the “Power” button until the device menu appears.
  • From the menu, select “Power off” option and wait for the complete power off (shut down).
  • After the Power off, wait for at least 10 seconds.
  • Finally, press and hold the “Power” button to Power up the android device.
  • Now, you will not face the Google Play “Download unsuccessful” error.

In case, above mentioned method is not working for you then try out the below explained method.

Method 2: Clearing Cache on Android

  • Firstly, open “Settings” app and select “Applications” option.
  • Next, select “Manage Applications” and tap on “All” tab.
  • After that, scroll down and select “Google Play Store“.
  • Select “Clear cache” option to clear the device cache.
  • Now, go back and open “Download Manager“. On some devices it’s also listed as “Downloads”.
  • After that, select “Clear data” option.
  • For clearing cached data completely, you have to also clear data for Google Services Framework, Google Apps, Google Hangouts, and Checking Service etc.

In most of the cases, cached data is responsible for this kind of error. So, once you done these steps successfully download unsuccessful Google play error should be fixed.

Now try to upgrade or download any Android app from Google Play Store, you will not get the Google Play “Download unsuccessful” error on your Android smartphone. That’s it!

Понравилась статья? Поделить с друзьями:
  • Как найти длину пути теплохода
  • Как найти единицу младшего разряда
  • Как найти промежуток убывания функции без графика
  • Как найти папку если она пропала
  • Рассказ как найти общий язык