Question by
Splashy_Games · Feb 19, 2020 at 12:14 PM ·
androidandroid buildil2cpp
Plugin with id "com.android.application" not found. Gradle Build Failed
Hello, I have a problem building the gradle of my android project. Here's the project details:
Unity 2018.3.14f1
IL2CPP
Platform Android
Using Unity's Default gradle
When I build it goes well until it reaches the build gradle part of the build, then it throws an exception. Here's the stack trace:
CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\UnityProjects\Mesmelines\Temp\gradleOut\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating root project 'gradleOut'.
> Plugin with id 'com.android.application' not found.
* 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 0s
]
stdout[
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Can you help me?
Comment
Have you found a solution? I faced the same problem on 2019.1.13f1
Answer by ykcalikoglu · Feb 10 at 12:22 PM
Hey @Splashy_Games ! I have the same issue because of an SDK that I use. I wasn't able to find any solutions. Were you able to solve it? If so, how?