# Android packaging error with UE5.1.1

**URL:** <https://forums.unrealengine.com/t/android-packaging-error-with-ue5-1-1/1201803>\
**Category:** Mobile\
**Tags:** unreal-engine, question\
**Created:** [June 17, 2023, 1:50am UTC](https://forums.unrealengine.com/t/android-packaging-error-with-ue5-1-1/1201803 "2023-06-17T01:50:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_test](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@g\_test](https://forums.unrealengine.com/u/g_test)\
**Post date:** [June 17, 2023, 1:50am UTC](https://forums.unrealengine.com/t/android-packaging-error-with-ue5-1-1/1201803/1 "2023-06-17T01:50:28Z")

</div>

Tried to package on UE5.1.1 for Android but failed with below logs:

UATHelper: Packaging (Android (ASTC)): FAILURE: Build failed with an exception.  
UATHelper: Packaging (Android (ASTC)): \* What went wrong:  
UATHelper: Packaging (Android (ASTC)): Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.  
UATHelper: Packaging (Android (ASTC)): \> Could not resolve all task dependencies for configuration ‘:app:debugCompileClasspath’.  
UATHelper: Packaging (Android (ASTC)): \> Could not resolve com.google.android.gms:play-services-games:23.0.0.  
UATHelper: Packaging (Android (ASTC)): Required by:  
UATHelper: Packaging (Android (ASTC)): project :app  
UATHelper: Packaging (Android (ASTC)): \> Could not resolve com.google.android.gms:play-services-games:23.0.0.  
UATHelper: Packaging (Android (ASTC)): \> Could not get resource ‘[https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-games/23.0.0/play-services-games-23.0.0.pom](https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-games/23.0.0/play-services-games-23.0.0.pom)’.  
UATHelper: Packaging (Android (ASTC)): \> Could not GET ‘[https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-games/23.0.0/play-services-games-23.0.0.pom](https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-games/23.0.0/play-services-games-23.0.0.pom)’.  
UATHelper: Packaging (Android (ASTC)): \> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  
UATHelper: Packaging (Android (ASTC)): \> Could not resolve com.android.billingclient:billing:5.0.0.  
UATHelper: Packaging (Android (ASTC)): Required by:  
UATHelper: Packaging (Android (ASTC)): project :app  
UATHelper: Packaging (Android (ASTC)): \> Could not resolve com.android.billingclient:billing:5.0.0.  
UATHelper: Packaging (Android (ASTC)): \> Could not get resource ‘[https://dl.google.com/dl/android/maven2/com/android/billingclient/billing/5.0.0/billing-5.0.0.pom](https://dl.google.com/dl/android/maven2/com/android/billingclient/billing/5.0.0/billing-5.0.0.pom)’.  
UATHelper: Packaging (Android (ASTC)): \> Could not GET ‘[https://dl.google.com/dl/android/maven2/com/android/billingclient/billing/5.0.0/billing-5.0.0.pom](https://dl.google.com/dl/android/maven2/com/android/billingclient/billing/5.0.0/billing-5.0.0.pom)’.  
UATHelper: Packaging (Android (ASTC)): \> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  
UATHelper: Packaging (Android (ASTC)): \* Try:  
UATHelper: Packaging (Android (ASTC)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.  
UATHelper: Packaging (Android (ASTC)): \* Get more help at [https://help.gradle.org](https://help.gradle.org)  
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 13s

UE5.0.0 would work, I just change the ndk from 21b to 25b, other settings in Android SDK of project settings remain the same, but UE5.1.1 did not work. Anybody know the difference about android packaging for 5.0 and 5.1, how to solve the error? Thx a lot

---

<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:** [July 24, 2023, 1:07am UTC](https://forums.unrealengine.com/t/android-packaging-error-with-ue5-1-1/1201803/2 "2023-07-24T01:07:02Z")

</div>

someone please post a solution D:

---

<div class="post-metadata">

**Author:** ![g\_test](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@g\_test](https://forums.unrealengine.com/u/g_test)\
**Post date:** [July 24, 2023, 3:56am UTC](https://forums.unrealengine.com/t/android-packaging-error-with-ue5-1-1/1201803/3 "2023-07-24T03:56:25Z")

</div>

Actually fixed for myself. Suppose it’s cause of network proxy issue. After I changed to another public network, the packaging works good

---

<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:** [July 24, 2023, 12:22pm UTC](https://forums.unrealengine.com/t/android-packaging-error-with-ue5-1-1/1201803/4 "2023-07-24T12:22:54Z")

</div>

i fixed it this morning by using openssl to get the ssl certificate of jcenter.bintray then put it into my java cacert then it worked fr me as well
