# How To Fix Crash in Android 12/13 (32/33) package project AAB or APKS

**URL:** <https://forums.unrealengine.com/t/how-to-fix-crash-in-android-12-13-32-33-package-project-aab-or-apks/1155493>\
**Category:** Tutorial & Course Discussions\
**Tags:** Android-Packaging, Mobile, Android-Studio, unreal-engine, crash, Android, question\
**Created:** [May 5, 2023, 3:15pm UTC](https://forums.unrealengine.com/t/how-to-fix-crash-in-android-12-13-32-33-package-project-aab-or-apks/1155493 "2023-05-05T15:15:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikuni\_Tensai](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikuni_tensai/32/695442_2.png) [@Mikuni\_Tensai](https://forums.unrealengine.com/u/Mikuni_Tensai)\
**Post date:** [May 5, 2023, 3:15pm UTC](https://forums.unrealengine.com/t/how-to-fix-crash-in-android-12-13-32-33-package-project-aab-or-apks/1155493/1 "2023-05-05T15:15:58Z")

</div>

Hi greetings, here let me read the story of my personal experience when I had a problem like the title of this forum, in my problem I wanted to distribute to Playstore but after everything was done there was a problem with Android users version 12 and above, how do I solve the problem? can be listened to and hopefully help.

1. Open your unreal engine and compile/package the project for aab which will be distributed to the playstore maybe I will give a little of my settings like the following where I use the google pad plugin.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/1/c319002c91a4d9528c7098441ce7b98f7b4d89fe.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/d/18d853ae3913e9d121d1736aec1890008916208a.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/c/e7cd59fb47916f12d05a69461d67c4e1b7c3d3c6.png)

my goal is to do a package project so that the gradle app can be opened in android studio where is the location of the folder in …\Unreal Projects.…\Intermediate\Android\gradle

1. Now open android studio and open the location of the folder above …\Unreal Projects.…\Intermediate\Android\gradle

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/5/5c56997511f4547c2514880233bf7972552026b3.png)

and some of the android studios that you have to change can follow my method, and click project strucutre

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/9/9395723d38975947ea3a98ad9e1fb47417473c39.png)

and change to …

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/7/4274d58152cef165aca63d764d3a2e46cbdf5fe1.png)

add dependencies: implementation ‘androidx.work:work-runtime-ktx:2.7.0’

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/0/f20b6a3f985ec181e9c83f45369dfd35f75401c2.png)

on buildAdditions.gradle change version implementation ‘com.android.billingclient:billing:\*\*\*’ to newer

It’s enough to get here, the problem I’m experiencing is to change too far from what is in the unreal engine, I don’t recommend it because it can eliminate some of the features in your application. now you can try by clicking the run button in android studio so it doesn’t take too long for testing and you can find the method yourself on the forum to enable usb debugging and installed usb in developer mode

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/f/8af4853f74621c0a2a36747cd65f48e1e4b49813.png)

⚠ ⚠ and I forgot to remind you don’t forget to press sync first then clean project

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/8/ac8ee01f9a97a8dab7ef0ce3ef5847e2172a44d2.png)

NOTE: if you get an error like ueAFSProjectAssembleRelease open buildAdditions.gradle on // — Begin AFSProject — delete the if written in the notice error message

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/a/e4a80574aad62049789aa5c7b33c116bbe508884.png)

from the beginning it appeared 4 if now there are 2 left

this way work 100% in i start from latest android 7, 12 and 13 everything works perfect. I hope this helps

---

<div class="post-metadata">

**Author:** ![Mikuni\_Tensai](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikuni_tensai/32/695442_2.png) [@Mikuni\_Tensai](https://forums.unrealengine.com/u/Mikuni_Tensai)\
**Post date:** [May 10, 2023, 2:45am UTC](https://forums.unrealengine.com/t/how-to-fix-crash-in-android-12-13-32-33-package-project-aab-or-apks/1155493/2 "2023-05-10T02:45:36Z")

</div>

for Unreal Engine 4

1. android manifiest must be include "android:exported=“true”
2. add this in build gradle: module-app  
android {  
compileOptions {  
sourceCompatibility JavaVersion.VERSION\_1\_8  
targetCompatibility JavaVersion.VERSION\_1\_8  
}  
}

and add dependencies

implementation ‘androidx.work:work-runtime-ktx:2.7.0’  
3. project structure  
4.0.0 and gradle version 6.8

NB: when your open unreal engine and compile your project all intermediate will be reset and config again in android studio

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 5, 2023, 8:50am UTC](https://forums.unrealengine.com/t/how-to-fix-crash-in-android-12-13-32-33-package-project-aab-or-apks/1155493/3 "2023-07-05T08:50:33Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
