# DELETE\_FAILED\_INTERNAL\_ERROR when deploying to Android

**URL:** <https://forums.unrealengine.com/t/delete-failed-internal-error-when-deploying-to-android/360634>\
**Category:** Mobile\
**Tags:** error, unreal-engine, Android, Packaging, question\
**Created:** [June 13, 2016, 2:58pm UTC](https://forums.unrealengine.com/t/delete-failed-internal-error-when-deploying-to-android/360634 "2016-06-13T14:58:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elggetto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elggetto](https://forums.unrealengine.com/u/Elggetto)\
**Post date:** [June 13, 2016, 2:58pm UTC](https://forums.unrealengine.com/t/delete-failed-internal-error-when-deploying-to-android/360634/1 "2016-06-13T14:58:39Z")

</div>

Hi,

**SOLUTION AT THE END**

I’m trying to package the default first person shooter game to my android device (Samsung S4 - Lollipop).  
I have installed all the driver, it is recognized via **adb devices** and inside **UE4**.

So when I try to launch it on my device, all goes well until it hangs forever on **Deploying Executable and Assets to SGH\_I337M**. In the Log output: **[DELETE\_FAILED\_INTERNAL\_ERROR]**

 ![94454-launcherror.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/7/29708b8e745925636fbefc5a7b6003a40e1b5c39.jpeg)

Then, If I go through the **Project Launcher** , and launch it with the **Android\_ETC1** Variant, I get the same error. [Here’s the log][2]

 ![94455-launchetc1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/9/60945f2a571ed49bb0e94858114ee212d8a93b03.jpeg)

Then, If I package the project first, then try to install it with the .bat file, I get this:

```
D:\Temp\AndroidTest\Android_ETC1>setlocal

D:\Temp\AndroidTest\Android_ETC1>set ANDROIDHOME=C:\NVPACK\android-sdk-windows

D:\Temp\AndroidTest\Android_ETC1>if "C:\NVPACK\android-sdk-windows" == "" set AN
DROIDHOME=C:/NVPACK/android-sdk-windows

D:\Temp\AndroidTest\Android_ETC1>set ADB=C:\NVPACK\android-sdk-windows\platform-
tools\adb.exe

D:\Temp\AndroidTest\Android_ETC1>set DEVICE=

D:\Temp\AndroidTest\Android_ETC1>if not "" == "" set DEVICE=-s

D:\Temp\AndroidTest\Android_ETC1>for /F "delims=" %A in ('C:\NVPACK\android-sdk-
windows\platform-tools\adb.exe shell "echo $EXTERNAL_STORAGE"') do @set STORAGE=
%A

Uninstalling existing application. Failures here can almost always be ignored.

D:\Temp\AndroidTest\Android_ETC1>C:\NVPACK\android-sdk-windows\platform-tools\ad
b.exe uninstall com.GMDA.Test
Failure [DELETE_FAILED_INTERNAL_ERROR]

Installing existing application. Failures here indicate a problem with the devic
e (connection or storage permissions) and are fatal.

D:\Temp\AndroidTest\Android_ETC1>C:\NVPACK\android-sdk-windows\platform-tools\ad
b.exe install BasicVR-armv7-es2.apk

```

So pretty sure the problem is somewhere on my device. I have 5gb available on my phone + 2gb on an sd card.

Any help is appreciated! Thank you.

**Edit:** Also, it works in the mobile preview.

**Edit 2:** Tried it with Version 4.8, same error.

**Edit 3:** A few lines of command lines later, everytime I try to uninstall any package ( **adb uninstall com.GMDA.Test** )existing or not, I get the error **(DELETE\_FAILED\_INTERNAL\_ERROR)**

**Edit 4:** Digging deeper, I think it might be an Issue with Lollipop and write permissions on an sd card. Anybody have been successfully packaging for Lollipop?

**Edit 5:** If I try to install it manually, by putting the file directly on the phone, the file just doesn’t transfer. Small files (few kb) works. But 300Mb just stays at 0% forever.

**SOLUTION:** The USB Cable was the culprit. Use the official cable that came with the cellphone. A 10$ USB doesn’t mean it’s gonna work.

---

<div class="post-metadata">

**Author:** ![Elggetto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elggetto](https://forums.unrealengine.com/u/Elggetto)\
**Post date:** [June 13, 2016, 7:05pm UTC](https://forums.unrealengine.com/t/delete-failed-internal-error-when-deploying-to-android/360634/2 "2016-06-13T19:05:32Z")

</div>

Use the official USB Cable people

---

<div class="post-metadata">

**Author:** ![CreativeDude](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CreativeDude](https://forums.unrealengine.com/u/CreativeDude)\
**Post date:** [July 25, 2017, 2:50pm UTC](https://forums.unrealengine.com/t/delete-failed-internal-error-when-deploying-to-android/360634/3 "2017-07-25T14:50:35Z")

</div>

Thanks for the answer!  
Why does using the official USB cable matter?

---

<div class="post-metadata">

**Author:** ![Alkbabic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alkbabic](https://forums.unrealengine.com/u/Alkbabic)\
**Post date:** [August 15, 2023, 6:09pm UTC](https://forums.unrealengine.com/t/delete-failed-internal-error-when-deploying-to-android/360634/4 "2023-08-15T18:09:11Z")

</div>

I have similar problem on Unreal Engine 5.2.1  
Here log  
…Uninstalling existing application. Failures here can almost always be ignored.

C:\Users\alika\Desktop\1\Android\_ETC2\>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe uninstall com.alk.idfp  
adb server version (41) doesn’t match this client (39); killing…

- daemon started successfully \*  
Failure [DELETE\_FAILED\_INTERNAL\_ERROR]

Installing existing application. Failures here indicate a problem with the device (connection or storage permissions) and are fatal.

C:\Users\alika\Desktop\1\Android\_ETC2\>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe install idfp-Android-Shipping-arm64.apk  
Failed to install idfp-Android-Shipping-arm64.apk:  
There was an error installing the game or the obb file. Look above for more info.

Things to try:  
Check that the device (and only the device) is listed with “ADB$ devices” from a command prompt.  
Make sure all Developer options look normal on the device  
Check that the device has an SD card.  
Press any key to continue . . .

Edit. Here is not phone problem. Because I have made some install bat files older and they works fine and install in pone perfect.

---

<div class="post-metadata">

**Author:** ![Oleksandr\_Thanku](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oleksandr\_Thanku](https://forums.unrealengine.com/u/Oleksandr_Thanku)\
**Post date:** [November 28, 2023, 4:37pm UTC](https://forums.unrealengine.com/t/delete-failed-internal-error-when-deploying-to-android/360634/5 "2023-11-28T16:37:56Z")

</div>

Did you fix it?

---

<div class="post-metadata">

**Author:** ![Alkbabic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alkbabic](https://forums.unrealengine.com/u/Alkbabic)\
**Post date:** [January 12, 2024, 11:37am UTC](https://forums.unrealengine.com/t/delete-failed-internal-error-when-deploying-to-android/360634/6 "2024-01-12T11:37:28Z")

</div>

If reply to me. I partyaly fix. With other ADB (edit need bat file and change ADB path) it works better. But if have obb file, then in some phones if remember good, not works. But trying coping…

---

<div class="post-metadata">

**Author:** ![Exorcistpyro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Exorcistpyro](https://forums.unrealengine.com/u/Exorcistpyro)\
**Post date:** [February 6, 2024, 4:38pm UTC](https://forums.unrealengine.com/t/delete-failed-internal-error-when-deploying-to-android/360634/7 "2024-02-06T16:38:19Z")

</div>

> [@Elggetto](#):
>
> kan berfun

I had the same problem, has the problem been solved?

---

<div class="post-metadata">

**Author:** ![Alkbabic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alkbabic](https://forums.unrealengine.com/u/Alkbabic)\
**Post date:** [November 14, 2024, 2:03pm UTC](https://forums.unrealengine.com/t/delete-failed-internal-error-when-deploying-to-android/360634/8 "2024-11-14T14:03:13Z")

</div>

Need edit bat file and under install set corect name  
%ADB% %DEVICE% install AFS\_…  
need remove ASF\_  
But for me only work then game data inside app. without obb…
