# stuck 1 week at packaging android error

**URL:** <https://forums.unrealengine.com/t/stuck-1-week-at-packaging-android-error/567807>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 27, 2022, 10:54am UTC](https://forums.unrealengine.com/t/stuck-1-week-at-packaging-android-error/567807 "2022-05-27T10:54:22Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [May 29, 2022, 4:35pm UTC](https://forums.unrealengine.com/t/stuck-1-week-at-packaging-android-error/567807/21 "2022-05-29T16:35:42Z")

</div>

> [@1mikiii99](#):
>
> I deleting Intermediate/Saved/Build/binaries/DerivedDataCache every time befor packaging for android

I never did that by the way)

---

<div class="post-metadata">

**Author:** ![1mikiii99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1mikiii99](https://forums.unrealengine.com/u/1mikiii99)\
**Post date:** [May 29, 2022, 4:36pm UTC](https://forums.unrealengine.com/t/stuck-1-week-at-packaging-android-error/567807/22 "2022-05-29T16:36:18Z")

</div>

Really appreciate your help 👍  
I’ll try it tomorrow 🙂

---

<div class="post-metadata">

**Author:** ![Nikoniko2027](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nikoniko2027/32/593531_2.png) [@Nikoniko2027](https://forums.unrealengine.com/u/Nikoniko2027)\
**Post date:** [November 23, 2022, 5:01pm UTC](https://forums.unrealengine.com/t/stuck-1-week-at-packaging-android-error/567807/23 "2022-11-23T17:01:56Z")

</div>

> [@dev.ue.games](#):
>
> if you need update use ‘com.android.tools.build:gradle:4.2.2’

I encountered such an error, tried to specify the version of gradle 4.2.2. However, it didn’t help me. Maybe you know what needs to be done to fix this problem?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/9/85953dd449275ad6ca4c5bead3c229d47539b0f5.png)

Min. SDK = 21  
Target SDK = 31

SDK api - latest  
NDK api - android-21

jre - Android studio (4.0.0)  
ndk - 21.4.7075529  
sdk

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/a/0fa3d6814bb91208e0cf4de9def36ec10d9e2314.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/d/fcd0b48ea119030e8bba500c63b461dee9f28b3a.png)

---

<div class="post-metadata">

**Author:** ![Nikoniko2027](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nikoniko2027/32/593531_2.png) [@Nikoniko2027](https://forums.unrealengine.com/u/Nikoniko2027)\
**Post date:** [December 12, 2022, 12:42pm UTC](https://forums.unrealengine.com/t/stuck-1-week-at-packaging-android-error/567807/24 "2022-12-12T12:42:28Z")

</div>

I wrote a solution to the problem here → [UE4 github VS2022 com.google.android.gms.plus ANDROID](https://forums.unrealengine.com/t/ue4-github-vs2022-com-google-android-gms-plus-android/714139)

---

<div class="post-metadata">

**Author:** ![christuusgnosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christuusgnosis](https://forums.unrealengine.com/u/christuusgnosis)\
**Post date:** [December 13, 2022, 5:56pm UTC](https://forums.unrealengine.com/t/stuck-1-week-at-packaging-android-error/567807/25 "2022-12-13T17:56:26Z")

</div>

JFrog, the maintainers of JCenter, announced that they are sunsetting JCenter. This means the following for Android developers for their app’s dependencies:

```
March 31st 2021 - Libraries in JCenter will no longer be updated.
February 1, 2022 - JCenter will be completely shut down.

```

Add Maven Central to your project:

```
Open your root build.gradle
Find lines that say jcenter() and replace them with mavenCentral() (Make sure to add mavenCenteral() in both spots where jcenter() is found.)

```

.

```
// Top-level build file where you can add configuration options common to all sub-projects/modules.

```

buildscript {  
repositories {  
google()  
mavenCentral() // New line  
// jcenter()  
// NOTE: Keep any other entries you may have had here  
}  
dependencies {  
classpath “com.android.tools.build:gradle:4.1.2”  
//… no changes here  
}  
}  
allprojects {  
repositories {  
google()  
mavenCentral() // New line  
// jcenter()  
// NOTE: Keep any other entries you may have had here  
}  
}

So adjust the jcenter lines or remove the plugin that uses jcenter.  
you need sdk29/ndk21, jre8, jdk8, A studio4.

[Previous page](https://forums.unrealengine.com/t/stuck-1-week-at-packaging-android-error/567807.md?page=1)
