Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'
Asked Answered
G

2

0

Hello there, I’m working on unity’s 2019.4.21f1 version. I’m getting the following error while building the apk :-

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:preReleaseBuild'.
> Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
   > Failed to transform artifact 'support-v4-25.2.0.aar (:support-v4-25.2.0:)' to match attributes {artifactType=android-manifest}
      > Execution failed for JetifyTransform: C:\Nilesh\Unity\Ludo Master4april2021\Ludo Master\Temp\gradleOut\unityLibrary\libs\support-v4-25.2.0.aar.
         > Failed to transform 'C:\Nilesh\Unity\Ludo Master4april2021\Ludo Master\Temp\gradleOut\unityLibrary\libs\support-v4-25.2.0.aar' using Jetifier. Reason: The given artifact contains a string literal with a package reference 'android.support.v4' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.. (Run with --stacktrace for more details.)

* Try:
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.

* Get more help at https://help.gradle.org

BUILD FAILED in 22s

UnityEngine.GUIUtility:ProcessEvent (int,intptr)
Gaia answered 12/10, 2023 at 8:35 Comment(0)
G
0

@Gaia solved it by deleting the support-v4-25.2.0.aar file from my project.

Gaia answered 29/3, 2024 at 4:10 Comment(0)
A
0

where is that file

Allineallis answered 12/10, 2023 at 2:35 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.