Failed to recompile android resource files Unity
I am completely new to any of this. So I was following this tutorial(consists of 4 videos) https://www.youtube.com/watch?v=g_Ff1SPhidg At the end tutorial he built it for Windows.(I also tried building it for Windows and it works just fine) But I want to do it for Android. I've looked up some stuff and figured out that you need to set up jdk and sdk, which I did, then I specified the locations in preferences. Now when I try to compile I get the "Failed to recompile android resource files" message, I've googled and literally tried every answer there was for possibly the same problem and still no solution... If somebody could help me figure out the problem, I would greatly appreciate it. Here is the error message from the console:
UnityException: Resource compilation failed! Failed to recompile android resource files. See the Console for details. UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message) UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuildPointToConsole (System.String title, System.String message) UnityEditor.Android.PostProcessor.Tasks.BuildResources.CompileResources (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.Tasks.BuildResources.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:271) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)