# Package a VR game for Android with UE 4.21

**URL:** <https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Android, packaging-projects, question\
**Created:** [December 19, 2018, 8:10pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814 "2018-12-19T20:10:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugues1965](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hugues1965](https://forums.unrealengine.com/u/Hugues1965)\
**Post date:** [December 19, 2018, 8:10pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/1 "2018-12-19T20:10:57Z")

</div>

Hi all,

I followed this procedure to package a VR game on my Android 8.1 phone with UE 4.19:

[https://docs.unrealengine.com/en-US/Platforms/GoogleVR/QuickStart](https://docs.unrealengine.com/en-US/Platforms/GoogleVR/QuickStart)  
and it works, I can open the app on my phone.

But my projects have been created with UE 4.21 and i’m having problems packaging them. The app starts on my phone but i just get a black screen and it closes after a while, no error message.

If anyone knows the procedure to follow for 4.21, i’d greatly appreciate it. I did not find a way to downgrade my 4.21 projects into 4.19.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_942e8e52](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_942e8e52](https://forums.unrealengine.com/u/anonymous_user_942e8e52)\
**Post date:** [December 19, 2018, 8:24pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/2 "2018-12-19T20:24:13Z")

</div>

Hello Hugues,

I’ve been trying to get a solid repro for  
[Unreal Engine Issues and Bug Tracker (UE-65983)](https://issues.unrealengine.com/issue/UE-65983)

What phone are you using?

Also, can you share your log from your phone?  
Located on the phone with a directory similar to:  
\UE4Game\YourProject\YourProject\Saved\Logs

---

<div class="post-metadata">

**Author:** ![Hugues1965](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hugues1965](https://forums.unrealengine.com/u/Hugues1965)\
**Post date:** [December 20, 2018, 7:25pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/3 "2018-12-20T19:25:13Z")

</div>

Hi , thanks for your feed-back.  
I’m using a Nexus 5x, with Android 8.1  
Strangely enough, i don’t have a folder called /Saved/Logs on my phone.

After I run the .bat file on my computer, this folder and file is created on my phone, plus my app icon:  
storage/emulated/0/obb/com.YourCompany.Test\_Cardboard/main.1.com.YourCompany.test\_Cardboard.obb

I search my phone for a Logs folder but nothing found, can’t find the UE4Game either.

Below I attach a screen shot of my PC screen after running the .bat file when the file is copied to my phone.

Does that help you ?

 ![262957-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/3/ab3e3a89229d4ef64928b41c4593381fad326fa5.png)

---

<div class="post-metadata">

**Author:** ![KEATE\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KEATE\_1](https://forums.unrealengine.com/u/KEATE_1)\
**Post date:** [December 24, 2018, 1:16pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/4 "2018-12-24T13:16:34Z")

</div>

Hello Hugues,

I’d like to package my project with 4.21 too,but there is also a trouble for me.

My trouble is  
“/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86\_64/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/bin\ld: error: cannot find -llibaristo\_interface.so”  
It doesn’t report a error until packaging to …-armv7-es2.so

Which version of NDK do you use?And What should I fill the SDK&NDK API LEVEL blank?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Hugues1965](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hugues1965](https://forums.unrealengine.com/u/Hugues1965)\
**Post date:** [December 24, 2018, 1:24pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/5 "2018-12-24T13:24:37Z")

</div>

Hi, below a printscreen of my Project settings/Android SDK. I believe this answers your 2 questions, let me know if not:

![263239-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/5/0b5df13d4f61ad1128054a155e0a29a47a382048.jpeg)

---

<div class="post-metadata">

**Author:** ![electronicvision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@electronicvision](https://forums.unrealengine.com/u/electronicvision)\
**Post date:** [December 24, 2018, 4:15pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/6 "2018-12-24T16:15:00Z")

</div>

make sure to enable VR plugins if you haven’t already …on the very top left click Edit then chose Plugins in the drop down menu , then type in VR in the search bar and enable them

---

<div class="post-metadata">

**Author:** ![Hugues1965](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hugues1965](https://forums.unrealengine.com/u/Hugues1965)\
**Post date:** [December 24, 2018, 4:17pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/7 "2018-12-24T16:17:17Z")

</div>

yes, I enabled Google VR, Google VR Motion Controller and Google VR transition 2d

---

<div class="post-metadata">

**Author:** ![KEATE\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KEATE\_1](https://forums.unrealengine.com/u/KEATE_1)\
**Post date:** [December 25, 2018, 2:22am UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/8 "2018-12-25T02:22:04Z")

</div>

I didn’t use the NVPACK,and I wonder that the error reason is cuz I used a customed package rather than the default package(NVPACK).As you see,the error reminded me of cannot find .so library.

---

<div class="post-metadata">

**Author:** ![KEATE\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KEATE\_1](https://forums.unrealengine.com/u/KEATE_1)\
**Post date:** [December 27, 2018, 3:36am UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/9 "2018-12-27T03:36:37Z")

</div>

Now I have another problem,do u know the path for saving data on android?

---

<div class="post-metadata">

**Author:** ![Hugues1965](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hugues1965](https://forums.unrealengine.com/u/Hugues1965)\
**Post date:** [December 27, 2018, 9:47am UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/10 "2018-12-27T09:47:14Z")

</div>

Not sure as i could not make it work, but maybe the answer of O above can give you a hint, he says to look into this Android folder for a log: \UE4Game\YourProject\YourProject\Saved\Logs

---

<div class="post-metadata">

**Author:** ![DesertEagle\_PWN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DesertEagle\_PWN](https://forums.unrealengine.com/u/DesertEagle_PWN)\
**Post date:** [March 31, 2019, 5:57pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/11 "2019-03-31T17:57:04Z")

</div>

, I have some info regarding UE-65983. Please see my post here: [Android App Crashes on Launch UE4.21 (UE-65983) - Mobile - Epic Developer Community Forums](https://answers.unrealengine.com/questions/884596/view.html)

It seems it may be related to a mismatched JRE reference.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_942e8e52](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_942e8e52](https://forums.unrealengine.com/u/anonymous_user_942e8e52)\
**Post date:** [March 31, 2019, 9:24pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/12 "2019-03-31T21:24:34Z")

</div>

Hello DesertEagle\_PWN,

It is not 100% certain, but I believe this is happening on phones without a magnometer or accelerometer or NFC.

What phone are you using?

---

<div class="post-metadata">

**Author:** ![DesertEagle\_PWN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DesertEagle\_PWN](https://forums.unrealengine.com/u/DesertEagle_PWN)\
**Post date:** [April 1, 2019, 10:27pm UTC](https://forums.unrealengine.com/t/package-a-vr-game-for-android-with-ue-4-21/439814/13 "2019-04-01T22:27:17Z")

</div>

As shared in the other answerHub issue my phone is a Samsung Galaxy S7 (SM-G930V)
