# 4.26.1 - Android Export Error

**URL:** <https://forums.unrealengine.com/t/4-26-1-android-export-error/212728>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [April 11, 2021, 6:45pm UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728 "2021-04-11T18:45:32Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![MR\_Marks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MR\_Marks](https://forums.unrealengine.com/u/MR_Marks)\
**Post date:** [April 11, 2021, 6:45pm UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/1 "2021-04-11T18:45:32Z")

</div>

Hello.

I am trying my first project export for android. I am set up SDK for android. SDK and JDK was download using Android Studio. NDK is version r21e, because my previously used JDK for Unity was too old.

The problem Is when I am trying to Package Project for android. Then the unknown Error show up that you can see below on the image.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/8/c862b12526a729de411ec55056981811b230882c.png)

I am trying to solve the error for more than two weeks, but unfortunately without any progress.  
Please what can I do for fixing the error? I am out of ideas.  
Thank you

---

<div class="post-metadata">

**Author:** ![SteelWB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/steelwb/32/88716_2.png) [@SteelWB](https://forums.unrealengine.com/u/SteelWB)\
**Post date:** [April 12, 2021, 12:09am UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/2 "2021-04-12T00:09:03Z")

</div>

I’ve gotten a similar issue trying to build for my quest 2 since it runs android and have been unable to fix it as well. I tried the source version of unreal which gives more detail on the errors, and finally fixed them by changing the java version to the one included in the android sdk folder, but now I have a separate set of errors that I cant figure out. tempted to just go back to 4.25 and creating a new blank project. luckily I haven’t done anything except create a blank project and test launching and packaging. I would be screwed otherwise.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cb211179](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cb211179](https://forums.unrealengine.com/u/anonymous_user_cb211179)\
**Post date:** [April 12, 2021, 12:27am UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/3 "2021-04-12T00:27:00Z")

</div>

This is interesting, I agree with SteelWB, I would also be definitely screwed. I hope someone gets around and answers this.

---

<div class="post-metadata">

**Author:** ![SteelWB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/steelwb/32/88716_2.png) [@SteelWB](https://forums.unrealengine.com/u/SteelWB)\
**Post date:** [April 12, 2021, 12:58am UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/4 "2021-04-12T00:58:15Z")

</div>

So, I finally got it working. you need to install the jre version 8 from the internet (you will need a free oracle account to downlead that old version) and point the java environment to that and then and you have to manually download the correct ndk version, 21.0.6113669. you do that in android studio by going to configure \> sdk manager \> sdk tools \> check Show Package Details and scroll down to NDK(Side by Side) and look for that version. once both were installed and unreal was pointed to the right place, it worked for me.

---

<div class="post-metadata">

**Author:** ![SteelWB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/steelwb/32/88716_2.png) [@SteelWB](https://forums.unrealengine.com/u/SteelWB)\
**Post date:** [April 12, 2021, 2:10am UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/5 "2021-04-12T02:10:56Z")

</div>

I hope that might fix your issue since we both were having a similar issue

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_aabe47db](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aabe47db](https://forums.unrealengine.com/u/anonymous_user_aabe47db)\
**Post date:** [April 12, 2021, 10:59am UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/6 "2021-04-12T10:59:17Z")

</div>

Now a days android development is growing day by day so many new features added . i also have my one [project](https://espiort.club) .

---

<div class="post-metadata">

**Author:** ![MR\_Marks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MR\_Marks](https://forums.unrealengine.com/u/MR_Marks)\
**Post date:** [April 13, 2021, 8:31pm UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/7 "2021-04-13T20:31:01Z")

</div>

Hello. Thank you for the reply.  
I tried to install java 8 and ndk version 20.0.6113669. I also changed the paths on the Android SDK page.  
But unluckily the error appeared again.  
Do have anyone any other option how to solve this error?  
Thank you.

---

<div class="post-metadata">

**Author:** ![SteelWB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/steelwb/32/88716_2.png) [@SteelWB](https://forums.unrealengine.com/u/SteelWB)\
**Post date:** [April 17, 2021, 4:11pm UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/8 "2021-04-17T16:11:08Z")

</div>

sometimes you will need to install all the android and jre stuff before installing unreal engine

---

<div class="post-metadata">

**Author:** ![SteelWB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/steelwb/32/88716_2.png) [@SteelWB](https://forums.unrealengine.com/u/SteelWB)\
**Post date:** [April 17, 2021, 6:43pm UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/9 "2021-04-17T18:43:10Z")

</div>

another fix is making sure you only have arm v7 or arm64 selected in the android build settings

---

<div class="post-metadata">

**Author:** ![KonPetTsu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KonPetTsu](https://forums.unrealengine.com/u/KonPetTsu)\
**Post date:** [May 18, 2021, 4:35pm UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/10 "2021-05-18T16:35:04Z")

</div>

solution:  
jdk-8u291-windows-x64 ( jre1.8.0\_291 ) from [Java SE Development Kit 8 - Downloads](https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html)  
+  
android-ndk-r21e from [NDK Revision History &nbsp;|&nbsp; Android NDK &nbsp;|&nbsp; Android Developers](https://developer.android.com/ndk/downloads/revision_history?hl=sl)

---

<div class="post-metadata">

**Author:** ![JuanIgnacio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/juanignacio/32/472720_2.png) [@JuanIgnacio](https://forums.unrealengine.com/u/JuanIgnacio)\
**Post date:** [June 11, 2021, 3:01pm UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/11 "2021-06-11T15:01:45Z")

</div>

It has worked for me just reinstalling jdk-8u291-windows-x64 (jre1.8.0\_291)  
Thank you!

---

<div class="post-metadata">

**Author:** ![moni\_CN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@moni\_CN](https://forums.unrealengine.com/u/moni_CN)\
**Post date:** [June 22, 2021, 5:04pm UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/12 "2021-06-22T17:04:45Z")

</div>

I met the same problem with you, but I still couldn’t solve it after trying the above measures. I wonder if you have solved it 😟

---

<div class="post-metadata">

**Author:** ![Brujah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brujah](https://forums.unrealengine.com/u/Brujah)\
**Post date:** [June 27, 2021, 9:43pm UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/13 "2021-06-27T21:43:50Z")

</div>

I’m going nuts trying to solve this error, has anyone tried anything else? I get the same error no matter what. ATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c “D:\UNREAL\MyProject\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleRelease

---

<div class="post-metadata">

**Author:** ![b4bylon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@b4bylon](https://forums.unrealengine.com/u/b4bylon)\
**Post date:** [July 15, 2021, 1:40am UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/14 "2021-07-15T01:40:00Z")

</div>

try on 4.25 or another computer. For me all the projects work on 4,25 but i am unable to find a fix for 4.26

---

<div class="post-metadata">

**Author:** ![ScrapingBottom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ScrapingBottom](https://forums.unrealengine.com/u/ScrapingBottom)\
**Post date:** [July 22, 2021, 9:53pm UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/15 "2021-07-22T21:53:32Z")

</div>

I was encountering the same rungrandle.bat error in 4.26.2. I followed along with this YouTube video and I was able to build properly: [https://www.youtube.com/watch?v=cLveaVXOKKc](https://www.youtube.com/watch?v=cLveaVXOKKc)

I think he’s got another one for 4.26.0 if you’re running that.

---

<div class="post-metadata">

**Author:** ![EONStudios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eonstudios/32/1181651_2.png) [@EONStudios](https://forums.unrealengine.com/u/EONStudios)\
**Post date:** [July 28, 2021, 4:38am UTC](https://forums.unrealengine.com/t/4-26-1-android-export-error/212728/16 "2021-07-28T04:38:41Z")

</div>

Any solved build ?
