# \[4.26\] Cannot package for android

**URL:** <https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [December 4, 2020, 8:23am UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541 "2020-12-04T08:23:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DownToCode](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DownToCode](https://forums.unrealengine.com/u/DownToCode)\
**Post date:** [December 4, 2020, 8:23am UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/1 "2020-12-04T08:23:37Z")

</div>

Hi everyone,

I am having a hard time packaging for android on UE4.26. I keep getting the same error over and over no matter what I do.  
My entire environment is set up to package for android below 4.25 as well as “for and above” 4.25 so I know the problem isn’t some missing environment variable or SDK/NDK installation. I was actually able to package for android up to 4.26 preview 6 but since preview 7 and with the 4.26 official release I cannot package.

This is the error I keep getting:

```auto

UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:3217: error: cannot find symbol
UATHelper: Packaging (Android (ASTC)): powerManager.addThermalStatusListener(getMainExecutor(), new PowerManager.OnThermalStatusChangedListener() {

```

Has anyone seen this?  
Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![gotgrassct](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gotgrassct/32/734850_2.png) [@gotgrassct](https://forums.unrealengine.com/u/gotgrassct)\
**Post date:** [December 4, 2020, 11:18am UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/2 "2020-12-04T11:18:36Z")

</div>

I’ve been trying as well, no luck…

---

<div class="post-metadata">

**Author:** ![Joel\_Schroder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joel\_Schroder](https://forums.unrealengine.com/u/Joel_Schroder)\
**Post date:** [December 4, 2020, 11:55am UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/3 "2020-12-04T11:55:06Z")

</div>

Also having the same exact problem.

---

<div class="post-metadata">

**Author:** ![DownToCode](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DownToCode](https://forums.unrealengine.com/u/DownToCode)\
**Post date:** [December 4, 2020, 4:48pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/4 "2020-12-04T16:48:58Z")

</div>

I asked on the Unreal Slackers ar-vr channel and got this reply:

- newer version of android NDK has that function
- 4.26 updated the NDK again to higher than 4.25

---

<div class="post-metadata">

**Author:** ![Augbrite](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Augbrite](https://forums.unrealengine.com/u/Augbrite)\
**Post date:** [December 4, 2020, 9:01pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/5 "2020-12-04T21:01:16Z")

</div>

Try to update android studio

---

<div class="post-metadata">

**Author:** ![Ilja4563](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ilja4563](https://forums.unrealengine.com/u/Ilja4563)\
**Post date:** [December 5, 2020, 1:27am UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/6 "2020-12-05T01:27:10Z")

</div>

I installed the 4.26 Preview and had this error. Than i made this tutorial [UNREAL ENGINE 4.25.1 PACKAGING FOR ANDROID TUTORIAL UPDATED! - YouTube](https://www.youtube.com/watch?v=4SY2Za6j7UY) and it works. Than I update to 4.26 Release and had the Error again. Than I switched between my old Codeworks SDK and the SDKs i installed from the tutorial and now it works again. I dont know why… it tooks me a day… maybe it is problem with the “Accept SDK License”

---

<div class="post-metadata">

**Author:** ![Svit\_Drift\_M](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Svit\_Drift\_M](https://forums.unrealengine.com/u/Svit_Drift_M)\
**Post date:** [December 7, 2020, 1:26pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/7 "2020-12-07T13:26:11Z")

</div>

> [@DownToCode](#):
>
> I am having a hard time packaging for android on UE4.26. I keep getting the same error over and over no matter what I do.
> 
> This is the error I keep getting:
> 
> ```auto
> 
> UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:3217: error: cannot find symbol
> UATHelper: Packaging (Android (ASTC)): powerManager.addThermalStatusListener(getMainExecutor(), new PowerManager.OnThermalStatusChangedListener() {
> 
> ```

Hi. I have launched on my android device, and I got this error. (When I package, I have this error). I open Android Studio (3.5.3) and install SDK API lvl 29 (it’s Android Q). Next I try again package my project. And it worked! )

 ![MySDKs.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/f/ef491eb339bf3f6f7a5806c6bda19fc568151fac.png)  
 ![SuccessfulLog.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/f/7f92ef3fb6c0b9ee0c0bdebe574e6a168159b544.png)  
 ![UE4SDK.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/4/94262384497a2c59d755b23222caf1dc46ee4a6e.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6ca349df1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6ca349df1](https://forums.unrealengine.com/u/anonymous_user_6ca349df1)\
**Post date:** [February 23, 2021, 6:44pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/8 "2021-02-23T18:44:36Z")

</div>

Just downloaded android sdk 29 and everything worked fine

---

<div class="post-metadata">

**Author:** ![gotgrassct](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gotgrassct/32/734850_2.png) [@gotgrassct](https://forums.unrealengine.com/u/gotgrassct)\
**Post date:** [February 23, 2021, 6:58pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/9 "2021-02-23T18:58:42Z")

</div>

Has anybody tried to use GooglePAD (Google Play Asset Delivery) to try and package a game using App Bundles rather then APK’s?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9fcfb11a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9fcfb11a1](https://forums.unrealengine.com/u/anonymous_user_9fcfb11a1)\
**Post date:** [February 27, 2021, 10:22am UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/10 "2021-02-27T10:22:18Z")

</div>

Is there any solutions to this yet? I’ve reinstalled all my android SDK and NDK but still nothing

---

<div class="post-metadata">

**Author:** ![Origafenix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/origafenix/32/1106458_2.png) [@Origafenix](https://forums.unrealengine.com/u/Origafenix)\
**Post date:** [March 7, 2021, 3:42pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/12 "2021-03-07T15:42:12Z")

</div>

> [@Svit\_Drift\_M](#):
>
> Hi. I have launched on my android device, and I got this error. (When I package, I have this error). I open Android Studio (3.5.3) and install SDK API lvl 29 (it’s Android Q). Next I try again package my project. And it worked! )

this is the solution

---

<div class="post-metadata">

**Author:** ![Piyubhoir01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Piyubhoir01](https://forums.unrealengine.com/u/Piyubhoir01)\
**Post date:** [March 16, 2021, 4:41pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/13 "2021-03-16T16:41:39Z")

</div>

UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): ====16-03-2021 21:56:02====PREPARING NATIVE CODE================================================================= UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): On build machine. UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Fixing minSdkVersion; NDK level above 19 requires minSdkVersion of 21 (arch=armv7) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Copying permission\_library directory to staging before build UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Directory C:\Users\piyubhoir01\Downloads\Compressed\UE\_4.19/Engine/Source/ThirdParty/AndroidPermission/permission\_library copied to C:\Users\piyubhoir01\Documents\Unreal Projects\TrollBall 4.19\Intermediate/Android/APK/JavaLibs/permission\_library UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): ==== Writing new GameActivity.java file to C:\Users\piyubhoir01\Documents\Unreal Projects\TrollBall 4.19\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ==== UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Copying new .so C:\Users\piyubhoir01\Downloads\Compressed\UE\_4.19\Engine\Binaries\Android\UE4Game-armv7-es2.so file to jni folder… UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): Preparing native code for debugging… UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): ERROR: System.IO.DirectoryNotFoundException: Could not find a part of the path ‘C:/NVPACK/android-ndk-r18b/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/libgnustl\_shared.so’. UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at [System.IO](http://System.IO).\_\_Error.WinIOError(Int32 errorCode, String maybeFullPath) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at UnrealBuildTool.UEDeployAndroid.CopySTL(AndroidToolChain ToolChain, String UE4BuildPath, String UE4Arch, String NDKArch, Boolean bForDistribution) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPack agingDataInApk, Boolean bDisallowExternalFilesDir) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, DirectoryReference ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at Project.Package(ProjectParams Params, Int32 WorkingCL) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at BuildCookRun.ExecuteBuild() UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at AutomationTool.Automation.Process(String] Arguments) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): at AutomationTool.Program.Main() UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): (see C:\Users\piyubhoir01\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Users+piyubhoir01+Downloads+Compressed+UE\_4.19\UAT\_Log.txt for full exception trace) UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): AutomationTool exiting with ExitCode=1 (Error\_Unknown) PackagingResults: Error: System.IO.DirectoryNotFoundException: Could not find a part of the path ‘C:/NVPACK/android-ndk-r18b/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/libgnustl\_shared.so’. UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): BUILD FAILED PackagingResults: Error: Unknown Error

Please Help

---

<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:12am UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/14 "2021-07-15T01:12:18Z")

</div>

what java version do u have?

---

<div class="post-metadata">

**Author:** ![KenSteelyHunter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KenSteelyHunter](https://forums.unrealengine.com/u/KenSteelyHunter)\
**Post date:** [December 16, 2021, 4:02pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/15 "2021-12-16T16:02:24Z")

</div>

yas, it is  
i download android sdk 29 for android 10 and place it to C:\NVPACK\android-sdk-windows\platforms under name android-29  
and justt done, work fine with stupid outdated nvidia codeworks )))))))))))

---

<div class="post-metadata">

**Author:** ![kamesan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kamesan](https://forums.unrealengine.com/u/kamesan)\
**Post date:** [February 8, 2022, 12:24am UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/16 "2022-02-08T00:24:43Z")

</div>

Thank you. Me too.  
BUILD SUCCESSFUL…!  
Hurrah!

---

<div class="post-metadata">

**Author:** ![pyskonus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pyskonus/32/485279_2.png) [@pyskonus](https://forums.unrealengine.com/u/pyskonus)\
**Post date:** [May 22, 2022, 8:35am UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/17 "2022-05-22T08:35:31Z")

</div>

Yoohoo, thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2afba4d31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2afba4d31](https://forums.unrealengine.com/u/anonymous_user_2afba4d31)\
**Post date:** [July 11, 2022, 7:26pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/18 "2022-07-11T19:26:15Z")

</div>

Thanks! I’ve been trying to find the solution for so long

---

<div class="post-metadata">

**Author:** ![ramory-l1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ramory-l1](https://forums.unrealengine.com/u/ramory-l1)\
**Post date:** [July 17, 2022, 1:03pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/19 "2022-07-17T13:03:49Z")

</div>

Working configuration for Unreal Engine 4.27  
Only two checkmarks in “SKD Platforms”

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/7/a873b4d1d3592703f85cc576f003b7dca99e8026.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/8/428e03da1ea8bc198d2dff1449fb25c0c57dfc73.png)  
And some checkmarks in “SDK Tools” with latest command-line tools  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/6/466558685f0e78d1454ee9661960eec29a7f76f1.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/2/de2ab514e90691a91f505b8c592dcd35c65747fa.png)  
Not sure that Cmake options make sense  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/a/b4a7a77b5ac8bda0669ca279b7248de9d3262cd9.png)

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [August 4, 2022, 8:20pm UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/20 "2022-08-04T20:20:07Z")

</div>

what is your set up in ue4 settings with these?

---

<div class="post-metadata">

**Author:** ![tag381](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tag381](https://forums.unrealengine.com/u/tag381)\
**Post date:** [August 19, 2022, 1:13am UTC](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541/21 "2022-08-19T01:13:06Z")

</div>

Z:\app\src\main\java\com\epicgames\unreal\DownloadShim.java:14: error: cannot find symbol

[Next page](https://forums.unrealengine.com/t/4-26-cannot-package-for-android/154541.md?page=2)
