# How to build an Android APK with OpenGL ES 3.1

**URL:** <https://forums.unrealengine.com/t/how-to-build-an-android-apk-with-opengl-es-3-1/404404>\
**Category:** Mobile\
**Tags:** Android-Packaging, es31, unreal-engine, question\
**Created:** [September 12, 2017, 4:13pm UTC](https://forums.unrealengine.com/t/how-to-build-an-android-apk-with-opengl-es-3-1/404404 "2017-09-12T16:13:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deckars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deckars](https://forums.unrealengine.com/u/deckars)\
**Post date:** [September 12, 2017, 4:13pm UTC](https://forums.unrealengine.com/t/how-to-build-an-android-apk-with-opengl-es-3-1/404404/1 "2017-09-12T16:13:30Z")

</div>

I am working on a GearVR game and developing it with a Samsung Galaxy S8+

I am desperatly trying to build an APK using OpenGL ES 3.1 (and not OpenGL ES 2.0)

I have followed the instructions on this page: [https://docs.unrealengine.com/latest/INT/Platforms/Android/OpenGLES31MobileRenderer/](https://docs.unrealengine.com/latest/INT/Platforms/Android/OpenGLES31MobileRenderer/)  
:  
1/ this page does not explain how to actually build an APK but just to launch the game on the device while it is connected to the computer.

2/ when trying to launch the game on the device:  
a/ the console indicates that an OpenGL ES 2.0 version is built and not an OpenGL ES 3.1 version  
b/ the game doesn’t play (just a black screen)  
c/ the building process takes forever  
d/ the ETC2 compression is used instead of the ASTC compression

So here are my questions:

1/ Why doesn’t Epic release a version of the Engine which natively builds APK for OpenGL ES 3.1 instead of letting us manually compile the engine?  
2/ What would be the process to actually launch the game on the device and have it work ?  
3/ What would be the process to make sure that the build is actually an ES 3.1 version (and not ES 2.0)?  
4/ What would be the process to build an actual ES 3.1 APK instead of just launching on the device?  
5/ What would be the process to make sure that the ASTC compression is used instead of ETC2?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![Fisher007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fisher007](https://forums.unrealengine.com/u/Fisher007)\
**Post date:** [April 3, 2018, 3:10pm UTC](https://forums.unrealengine.com/t/how-to-build-an-android-apk-with-opengl-es-3-1/404404/2 "2018-04-03T15:10:53Z")

</div>

Did you figure out the answers for those questions? I’m also a bit stuck with ES 2.0. Is there a way to check on the phone if it uses ES 2.0 or 3.1?

---

<div class="post-metadata">

**Author:** ![delphifirst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@delphifirst](https://forums.unrealengine.com/u/delphifirst)\
**Post date:** [August 9, 2018, 3:12am UTC](https://forums.unrealengine.com/t/how-to-build-an-android-apk-with-opengl-es-3-1/404404/3 "2018-08-09T03:12:25Z")

</div>

I followed every instruction in that page, but I still got armv7-es2 compiled instead of armv7-es31

---

<div class="post-metadata">

**Author:** ![delphifirst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@delphifirst](https://forums.unrealengine.com/u/delphifirst)\
**Post date:** [August 9, 2018, 4:31am UTC](https://forums.unrealengine.com/t/how-to-build-an-android-apk-with-opengl-es-3-1/404404/4 "2018-08-09T04:31:28Z")

</div>

I can answer some of your questions.

I found that even though you enable es3.1, the \*.so and \*.apk files will also have “es2” as postfix. I use Feature Level Switch node in a material to check that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2f39910c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2f39910c](https://forums.unrealengine.com/u/anonymous_user_2f39910c)\
**Post date:** [March 13, 2019, 5:36pm UTC](https://forums.unrealengine.com/t/how-to-build-an-android-apk-with-opengl-es-3-1/404404/5 "2019-03-13T17:36:10Z")

</div>

Is there any way we can override that postfix or force it to use ES3.1?
