I
I
InDivan2022-01-13 21:58:47
Android
InDivan, 2022-01-13 21:58:47

I created a small project on Unity but there were errors when compiling the apk file. How to correct errors?

Error 1)

Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details

> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
Mapping new ns schemas.android.com/repository/android/common/02 to old ns schemas.android.com/repository/android/common/01
Mapping new ns schemas.android.com/ repository/android/generic/02 to old ns schemas.android.com/repository/android/generic/01
Mapping new ns schemas.android.com/sdk/android/repo/addon2/02 to old nsschemas.android.com/sdk/android/repo/addon2/01
Mapping new ns schemas.android.com/sdk/android/repo/repository2/02 to old ns schemas.android.com/sdk/android/repo/repository2/ 01
Mapping new ns schemas.android.com/sdk/android/repo/sys-img2/02 to old ns schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns schemas.android.com/ repository/android/common/02 to old ns schemas.android.com/repository/android/common/01
Mapping new ns schemas.android.com/repository/android/generic/02 to old ns schemas.android.com/repository/ android/generic/01
Mapping new ns schemas.android.com/sdk/android/repo/addon2/02to old ns schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns schemas.android.com/sdk/android/repo/repository2/02 to old ns schemas.android.com/sdk/android/repo /repository2/01
Mapping new ns schemas.android.com/sdk/android/repo/sys-img2/02 to old ns schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns schemas.android .com/repository/android/common/02 to old ns schemas.android.com/repository/android/common/01
Mapping new ns schemas.android.com/repository/android/generic/02 to old ns schemas.android.com /repository/android/generic/01
Mapping new nsschemas.android.com/sdk/android/repo/addon2/02 to old ns schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns schemas.android.com/sdk/android/repo/repository2/ 02 to old ns schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns schemas.android.com/sdk/android/repo/sys-img2/02 to old ns schemas.android.com/sdk/ android/repo/sys-img2/01
Mapping new ns schemas.android.com/repository/android/common/02 to old ns schemas.android.com/repository/android/common/01
Mapping new ns schemas.android.com/ repository/android/generic/02 to old ns schemas.android.com/repository/android/generic/01
Mapping new ns schemas.android.com/sdk/android/repo/addon2/02 to old ns schemas.android.com/sdk/android/repo/addon2/01

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'.
> Installed Build Tools revision 32.0.0 is corrupted. Remove and install again using the SDK Manager.

* 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 2m 7s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details

> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
Mapping new ns schemas.android.com/repository/android/common/02 to old ns schemas.android.com/repository/android/common/01
Mapping new ns schemas.android.com/ repository/android/generic/02 to old ns schemas.android.com/repository/android/generic/01
Mapping new ns schemas.android.com/sdk/android/repo/addon2/02to old ns schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns schemas.android.com/sdk/android/repo/repository2/02 to old ns schemas.android.com/sdk/android/repo /repository2/01
Mapping new ns schemas.android.com/sdk/android/repo/sys-img2/02 to old ns schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns schemas.android .com/repository/android/common/02 to old ns schemas.android.com/repository/android/common/01
Mapping new ns schemas.android.com/repository/android/generic/02 to old ns schemas.android.com /repository/android/generic/01
Mapping new nsschemas.android.com/sdk/android/repo/addon2/02 to old ns schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns schemas.android.com/sdk/android/repo/repository2/ 02 to old ns schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns schemas.android.com/sdk/android/repo/sys-img2/02 to old ns schemas.android.com/sdk/ android/repo/sys-img2/01
Mapping new ns schemas.android.com/repository/android/common/02 to old ns schemas.android.com/repository/android/common/01
Mapping new ns schemas.android.com/ repository/android/generic/02 to old ns schemas.android.com/repository/android/generic/01
Mapping new ns schemas.android.com/sdk/android/repo/addon2/02 to old ns schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns schemas.android.com/sdk/android/repo /addon2/02 to old ns schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns schemas.android.com/sdk/android/repo/repository2/02 to old ns schemas.android.com/sdk /android/repo/repository2/01
Mapping new ns schemas.android.com/sdk/android/repo/sys-img2/02 to old ns schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns schemas.android.com/repository/android/common/02 to old nsschemas.android.com/repository/android/common/01
Mapping new ns schemas.android.com/repository/android/generic/02 to old ns schemas.android.com/repository/android/generic/01
Mapping new ns schemas. android.com/sdk/android/repo/addon2/02 to old ns schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns schemas.android.com/sdk/android/repo/repository2/02 to old ns schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns schemas.android.com/sdk/android/repo/sys-img2/02 to old ns schemas.android.com/sdk/android/ repo/sys-img2/01
Mapping new ns schemas.android.com/repository/android/common/02to old ns schemas.android.com/repository/android/common/01
Mapping new ns schemas.android.com/repository/android/generic/02 to old ns schemas.android.com/repository/android/generic/01
Mapping new ns schemas.android.com/sdk/android/repo/addon2/02 to old ns schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns schemas.android.com/sdk/android/repo/repository2 /02 to old ns schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns schemas.android.com/sdk/android/repo/sys-img2/02 to old ns schemas.android.com/sdk /android/repo/sys-img2/01


Error 4)
Build completed with a result of 'Failed' in 254 seconds (254425 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


Error 5)
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <7ac35247888b44f4a7e290f1f6bb33f3>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods(System.BooleanAskForLocation0,Default08 UnityEditorBuildOption0) ] in <7ac35247888b44f4a7e290f1f6bb33f3>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


If I screwed up somewhere or didn’t finish something, I apologize in advance. I'm new and this is my first question on the forum.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2022-01-13
@InDivan

* What went wrong:
Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'.
> Installed Build Tools revision 32.0.0 is corrupted. Remove and install again using the SDK Manager.
Here is the main mistake. Google will really help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question