# Android for distribution fails to load on device

**URL:** <https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863>\
**Category:** Mobile\
**Tags:** unreal-engine, question\
**Created:** [October 21, 2014, 10:04pm UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863 "2014-10-21T22:04:51Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![SteveFox1620](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SteveFox1620](https://forums.unrealengine.com/u/SteveFox1620)\
**Post date:** [March 13, 2015, 2:10am UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/21 "2015-03-13T02:10:52Z")

</div>

xml files in one archive. Let me know if there is any thing else you need. Thanks

It wlink text

---

<div class="post-metadata">

**Author:** ![SteveFox1620](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SteveFox1620](https://forums.unrealengine.com/u/SteveFox1620)\
**Post date:** [March 17, 2015, 8:00pm UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/22 "2015-03-17T20:00:20Z")

</div>

Was not fixed in 4.7.3 either.

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [March 19, 2015, 5:58pm UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/23 "2015-03-19T17:58:42Z")

</div>

Hey Steve,

I may have found this issue. You may be having issues with proguard txt file not transferring over with upgrading your project with new builds.

Go to this location in windows explorer: Location of your engine\>4.7\>Engine\>Build\>Android\>Java. You should be able to see a file named proguard-project.txt . Please let me know if you do not.

If it is in that location, Open up a new windows explorer window, and locate your Unreal projects folder. Locate project you are attempting to package and use this route to check and see if proguard-project.txt file is located within this location: [Project]\>Intermediate\>Android\> APK.

If it is, delete proguard text file in projects folder and copy and paste text file from Java folder.

Let me know if this helps with issue any.

Thanks!

---

<div class="post-metadata">

**Author:** ![SteveFox1620](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SteveFox1620](https://forums.unrealengine.com/u/SteveFox1620)\
**Post date:** [March 19, 2015, 7:56pm UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/24 "2015-03-19T19:56:38Z")

</div>

It did not seem to help. I was hoping it would as file inside project was only 2KB. one inside java folder was 3KB. Using new file did not fix it though.

---

<div class="post-metadata">

**Author:** ![wittlief\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wittlief\_1](https://forums.unrealengine.com/u/wittlief_1)\
**Post date:** [March 25, 2015, 7:51pm UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/25 "2015-03-25T19:51:09Z")

</div>

Hi SteveFox1620,

I spoke to Android dev with regards to users being obliged to use tadp-2.0r8 and he advised that upgrading is fine as long as you are using 4.7 update of engine, but you should make sure you have SDK 19 and NDK checked when installing. So feel free to update, it should be fine if you make those two changes.

---

<div class="post-metadata">

**Author:** ![DG\_Gage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DG\_Gage](https://forums.unrealengine.com/u/DG_Gage)\
**Post date:** [March 29, 2015, 8:44pm UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/26 "2015-03-29T20:44:46Z")

</div>

So when Google Play services were enabled for our about-to-be-released launch version, I experienced your problem. Crashes on distribution build, works fine with development or shipping without distribution. Google Play unchecked, distribution works.

I did what Sean said about updating my proguard file, and made sure to include it in Intermediate \> Android \> APK and in Build \> Android, just to be safe.

Still didn’t work.

However, I found this post:

> **[4.7 Android Shipping crash on launch](https://forums.unrealengine.com/questions/177637/47-android-shipping-crash-on-launch.html)**
>
> As reported in the forum thread by me and other person, the shipping build app still crashes on startup on the just released 4.7 Version: The development build runs but shipping build crashes on startup on my Galaxy S4. In my case its a project...

You add this to proguard file:

```
-keep class * extends android.media.MediaPlayer {
    public *;
 }

```

I had tried that post’s solution before with no success, but now, combined with Sean’s advice of updating proguard, and THEN adding this code, I am now able to use Google Play services and launch my game with distribution.

I really hope this helps you out.

---

<div class="post-metadata">

**Author:** ![birdfreeyahoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@birdfreeyahoo](https://forums.unrealengine.com/u/birdfreeyahoo)\
**Post date:** [April 19, 2015, 5:12pm UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/27 "2015-04-19T17:12:20Z")

</div>

worked for me thanks

---

<div class="post-metadata">

**Author:** ![SteveFox1620](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SteveFox1620](https://forums.unrealengine.com/u/SteveFox1620)\
**Post date:** [April 22, 2015, 7:11am UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/28 "2015-04-22T07:11:15Z")

</div>

I opened up my file and found that line all ready in there. Are you saying you have it twice in your file and that fixes it?

---

<div class="post-metadata">

**Author:** ![DG\_Gage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DG\_Gage](https://forums.unrealengine.com/u/DG_Gage)\
**Post date:** [April 22, 2015, 11:48am UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/29 "2015-04-22T11:48:08Z")

</div>

It wasn’t in mine, so I guess your problem elsewhere. ☹

---

<div class="post-metadata">

**Author:** ![SteveFox1620](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SteveFox1620](https://forums.unrealengine.com/u/SteveFox1620)\
**Post date:** [April 22, 2015, 7:20pm UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/30 "2015-04-22T19:20:36Z")

</div>

Thanks any way. At least someone tried. I’m still wondering why this thread is marked as resolved. It’s no wonder no one is getting any help on this known issue.

---

<div class="post-metadata">

**Author:** ![SteveFox1620](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SteveFox1620](https://forums.unrealengine.com/u/SteveFox1620)\
**Post date:** [July 7, 2015, 7:04pm UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/31 "2015-07-07T19:04:55Z")

</div>

Still an issue in 4.8.1

---

<div class="post-metadata">

**Author:** ![KillerSneak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killersneak/32/754802_2.png) [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Post date:** [July 8, 2015, 9:54am UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/32 "2015-07-08T09:54:11Z")

</div>

Still can’t get a Shipping/Distribution to work I’m having same problem. I think it has to do with game now being put into a folder **UE4Game.**

So even when you’re able to build a “For Distribution” / Shipping game it will not work from app store or installing it locally. For now you’re stuck with a non Distribution / Shipping game

I’m having exact same problem

**Working:**

Build configuration: Shipping

Full rebuild

**Not Working:**

Build configuration: Shipping

Full rebuild

For Distribution

_-_

A full shipping for distribution build will give error:

**Failed to open descriptor file**

> **[Google Play services removes the leading zeros for .obb file](https://forums.unrealengine.com/questions/193172/failed-to-open-descriptor-file-2.html)**
>
> I am getting an error message when my project is uploaded and published in alpha for google play (.apk + .obb). The file downloaded matches the .apk and .obb size, but when downloaded through google play it refuses to play, while the same .apk and...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [July 8, 2015, 9:59pm UTC](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863/33 "2015-07-08T21:59:12Z")

</div>

Hi ,

We will be tracking issues you are experiencing on post that you made:

> **[Can't "Alpha" test from play](https://forums.unrealengine.com/questions/253779/cant-alpha-test-from-google-play.html)**
>
> This doesn’t work with 4.8.1 game keeps crashing when opened/started Native crash at /system/lib/libdvm.so in /system/lib/libdvm.so, /system/lib/libhoudini.so.4.1.0\_y.45074 Here are some CRASH/ANR reports of problem #1 Build fingerprint: ...

Please refrain from posting your issue on multiple threads on AnswerHub. We will address issue on your post. Make sure you include any logs you can, as requested by wittlief.

[Previous page](https://forums.unrealengine.com/t/android-for-distribution-fails-to-load-on-device/296863.md?page=1)
