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)