# Building Android Game for Target SDK API 33

**URL:** <https://forums.unrealengine.com/t/building-android-game-for-target-sdk-api-33/1187415>\
**Category:** Mobile\
**Tags:** ue4-build, Packaging-Error, Android-Studio, unreal-engine, crash, Android, java\
**Created:** [June 3, 2023, 6:30am UTC](https://forums.unrealengine.com/t/building-android-game-for-target-sdk-api-33/1187415 "2023-06-03T06:30:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RakibRahaman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RakibRahaman](https://forums.unrealengine.com/u/RakibRahaman)\
**Post date:** [June 3, 2023, 6:30am UTC](https://forums.unrealengine.com/t/building-android-game-for-target-sdk-api-33/1187415/1 "2023-06-03T06:30:04Z")

</div>

Hello fellow Unreal Engine developers!

I recently encountered an issue while building my Android game for Target SDK 33 using Unreal Engine 4.27. I received an error during the packaging process, specifically related to the WebViewControl.java file. The error message indicated that certain methods, such as _ **setAppCacheMaxSize, setAppCachePath, and setAppCacheEnabled** _, could not be found in the WebSettings class.

Error Log:  
`Z:\app\src\main\java\com\epicgames\ue4\WebViewControl.java:122: error: cannot find symbol UATHelper: Packaging (Android (ETC2)): webView.getSettings().setAppCacheMaxSize( 10 * 1024 * 1024 ); UATHelper: Packaging (Android (ETC2)): ^ UATHelper: Packaging (Android (ETC2)): symbol: method setAppCacheMaxSize(int) UATHelper: Packaging (Android (ETC2)): location: class WebSettings UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\epicgames\ue4\WebViewControl.java:123: error: cannot find symbol UATHelper: Packaging (Android (ETC2)): webView.getSettings().setAppCachePath(GameActivity._activity.getApplicationContext().getCacheDir().getAbsolutePath() ); UATHelper: Packaging (Android (ETC2)): ^ UATHelper: Packaging (Android (ETC2)): symbol: method setAppCachePath(String) UATHelper: Packaging (Android (ETC2)): location: class WebSettings UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\epicgames\ue4\WebViewControl.java:125: error: cannot find symbol UATHelper: Packaging (Android (ETC2)): webView.getSettings().setAppCacheEnabled( true ); UATHelper: Packaging (Android (ETC2)): ^ UATHelper: Packaging (Android (ETC2)): symbol: method setAppCacheEnabled(boolean)`

Upon researching the issue, I discovered that these functions have been removed. To resolve the problem, I opened the Gradle project located at “Project’s Intermediate/Android/gradle” in Android Studio. In the WebViewControl.java file, I removed the problematic lines and added “_**webView.getSettings().setCacheMode(WebSettings.LOAD\_DEFAULT);**_” instead. This fixed the initial packaging error.

However, a new issue arose after launching the game. The game crashes shortly after showing the launch screen image. Upon further investigation using Android Studio’s debugger, I found the following error:

> _ **“E/FBI: Can’t load library: dlopen failed: library “libmagtsync.so” not found”.** _

At this point, I am seeking your assistance. Could you please help me understand how to fix this “libmagtsync.so” error? Alternatively, if you know of any other solutions for working with Target SDK 33, I would greatly appreciate your input.

Some Screenshots:

ANDROID PACKAGING SETTINGS:

 ![Screenshot 2023-06-03 114627](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/a/ebad1c36392147f6ff1889f7ad3655ed05efc3bd.png)

 ![Screenshot 2023-06-03 114117](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/d/27d97e7ebe34d732333cb5110d1c837bc0af7441.png)

ANDROID SDK :

 ![Screenshot 2023-06-03 113948](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/9/d89f396806f0640329e527db2c282e29b7e1f7c9.png)

ANDROID SDK IN ANDROID STUDIO:

 ![Screenshot 2023-06-03 113700](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/0/6b08bd678bee2841235f6c8ef5997d44d340d018.png)

 ![Screenshot 2023-06-03 113720](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/c/cbc8a45eeefbd79e0874b852783e749b3be88d44.png)

 ![Screenshot 2023-06-03 113915](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/9/089db34c3f48f2775fdfdd54d32f64e6bfd05646.png)

 ![Screenshot 2023-06-03 113821](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/e/97ee1d31a9c289d93c1420aa4c110b51288b4d95.png)

Thank you in advance for your help and suggestions!

---

<div class="post-metadata">

**Author:** ![lucxux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lucxux](https://forums.unrealengine.com/u/lucxux)\
**Post date:** [July 6, 2023, 10:16pm UTC](https://forums.unrealengine.com/t/building-android-game-for-target-sdk-api-33/1187415/2 "2023-07-06T22:16:52Z")

</div>

Hi. I am facing the same issue. But my app isn’t a game, the problem is when I try to take a picture. Did you solve? Or have any other clue? Anything would be great

---

<div class="post-metadata">

**Author:** ![Rizzist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rizzist](https://forums.unrealengine.com/u/Rizzist)\
**Post date:** [August 18, 2023, 5:37pm UTC](https://forums.unrealengine.com/t/building-android-game-for-target-sdk-api-33/1187415/3 "2023-08-18T17:37:04Z")

</div>

PLEASE SOMEONE SOLVE THIS D:

---

<div class="post-metadata">

**Author:** ![SparrowARK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SparrowARK](https://forums.unrealengine.com/u/SparrowARK)\
**Post date:** [August 26, 2023, 7:12pm UTC](https://forums.unrealengine.com/t/building-android-game-for-target-sdk-api-33/1187415/4 "2023-08-26T19:12:36Z")

</div>

This Video will Solve this problem.  
link : [Fixing Unreal Engine 4.27 Export Issue for Android API 33 (Android 13) - Step-by-Step Tutorial - YouTube](https://www.youtube.com/watch?v=w8p9VMapI18&ab_channel=SparrowARKUEtutorials)

---

<div class="post-metadata">

**Author:** ![Hanzyusuf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hanzyusuf](https://forums.unrealengine.com/u/Hanzyusuf)\
**Post date:** [November 8, 2023, 1:48am UTC](https://forums.unrealengine.com/t/building-android-game-for-target-sdk-api-33/1187415/5 "2023-11-08T01:48:17Z")

</div>

For anyone still struggling:

> [@UE 4.27.2 - How to build for target SDK 33 (or 34) !](https://forums.unrealengine.com/t/ue-4-27-2-how-to-build-for-target-sdk-33/1371642):
>
> As you guys might have also got the notice that [new apps must target sdk 33](https://developer.android.com/google/play/requirements/target-sdk). I had been banging my head since the past 6 hours playing with gradle versions, aapt2, etc to no avail. Finally found a viable solution! slight_smile Steps: 1. In The SDK Manager: Install API 33 (you can have others as well, but this is important): Install build tools 30.0.3 (don’t install any version higher than this, UE4 uses the latest installed version !): In…
