ChainSafe / web3.unity

🕹 Unity SDK for building games that interact with blockchains.
GNU Lesser General Public License v3.0
910 stars 235 forks source link

Android build not working #727

Closed juans-chainsafe closed 8 months ago

juans-chainsafe commented 10 months ago

Describe the bug Android build fails when it tries to build the app in the device

Steps Steps to reproduce the behavior:

  1. In Mac run the command: sudo chown -R juanmanuelspoleti: /Applications/Unity
  2. In Build settings switch to Android
  3. You need to have a Emulator open or a real device connected to your computer
  4. Click Build and Run button

Expected behavior App launches in the android device

Console errors

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

> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues
> Task :launcher:generateReleaseBuildConfig
> Task :unityLibrary:generateReleaseResources
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseResValues
> Task :launcher:generateReleaseResources
> Task :launcher:createReleaseCompatibleScreenManifests
> Task :launcher:extractDeepLinksRelease
> Task :launcher:javaPreCompileRelease
> Task :launcher:prepareLintJar
> Task :unityLibrary:packageReleaseResources
> Task :unityLibrary:extractDeepLinksRelease
> Task :launcher:checkReleaseDuplicateClasses
> Task :unityLibrary:generateReleaseBuildConfig
> Task :unityLibrary:javaPreCompileRelease
> Task :unityLibrary:mergeReleaseShaders
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:processReleaseJavaRes
> Task :unityLibrary:parseReleaseLocalResources
> Task :unityLibrary:compileReleaseLibraryResources
> Task :launcher:processReleaseManifest
> Task :unityLibrary:mergeReleaseJniLibFolders
> Task :unityLibrary:generateReleaseRFile
> Task :launcher:mergeReleaseShaders
> Task :launcher:compileReleaseShaders NO-SOURCE
> Task :launcher:generateReleaseAssets UP-TO-DATE
> Task :launcher:mergeReleaseAssets
> Task :launcher:mergeReleaseResources
> Task :launcher:processReleaseResources FAILED

> Task :unityLibrary:compileReleaseJavaWithJavac

> Task :unityLibrary:mergeReleaseNativeLibs
> Task :unityLibrary:bundleLibResRelease
> Task :unityLibrary:prepareLintJarForPublish
> Task :launcher:desugarReleaseFileDependencies
30 actionable tasks: 30 executed

 #0 GetStacktrace(int)
 #1 DebugStringToFile(DebugStringToFileData const&)
 #2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*)
 #3  (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
 #4  (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
 #5  (Mono JIT Code) [Logger.cs:61] UnityEngine.Logger:Log (UnityEngine.LogType,object)
 #6  (Mono JIT Code) [Debug.bindings.cs:130] UnityEngine.Debug:LogError (object)
 #7  (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
 #8  (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
 #9  (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput)
 #10  (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
 #11  (Mono JIT Code) [PostprocessBuildPlayer.cs:371] UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
 #12  (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
 #13 mono_jit_runtime_invoke
 #14 do_runtime_invoke
 #15 mono_runtime_invoke
 #16 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
 #17 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
 #18 CallMono(char const*, char const*, char const*, ScriptingArguments const&)
 #19 DoBuildPlayer(BuildPlayerSetup const&, std::__1::vector<EditorSceneBackup, stl_allocator<EditorSceneBackup, (MemLabelIdentifier)124, 16>>&, core::basic_string<char, core::StringStorageDefault<char>>, dynamic_array<core::basic_string<char, core::StringStorageDefault<char>>, 0ul> const&, bool, BuildReporting::BuildReport&, BuildReporting::BuiltAssetBundleInfo*, core::basic_string<char, core::StringStorageDefault<char>> const&)
 #20 BuildPlayer(BuildPlayerSetup const&, BuildReporting::BuildReport&)
 #21 BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck(ScriptingBackendNativeArrayPtrOpaque*, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeStringPtrOpaque*, BuildTargetPlatformGroup, BuildTargetPlatform, int, BuildPlayerOptions, ScriptingBackendNativeArrayPtrOpaque*, unsigned char)
 #22  (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)
 #23  (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:169] UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
 #24  (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:95] UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
 #25  (Mono JIT Code) [BuildPlayerWindow.cs:187] UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
 #26  (Mono JIT Code) [BuildPlayerWindow.cs:1198] UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
 #27  (Mono JIT Code) [BuildPlayerWindow.cs:1026] UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
 #28  (Mono JIT Code) [BuildPlayerWindow.cs:519] UnityEditor.BuildPlayerWindow:OnGUI ()
 #29  (Mono JIT Code) [HostView.cs:465] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
 #30  (Mono JIT Code) [DockArea.cs:387] UnityEditor.DockArea:DrawView (UnityEngine.Rect)
 #31  (Mono JIT Code) [DockArea.cs:379] UnityEditor.DockArea:OldOnGUI ()
 #32  (Mono JIT Code) [IMGUIContainer.cs:352] UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
 #33  (Mono JIT Code) [IMGUIContainer.cs:695] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
 #34  (Mono JIT Code) [IMGUIContainer.cs:665] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
 #35  (Mono JIT Code) [IMGUIContainer.cs:658] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
 #36  (Mono JIT Code) [IMGUIContainer.cs:618] UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
 #37  (Mono JIT Code) [IMGUIContainer.cs:607] UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
 #38  (Mono JIT Code) [IMGUIContainer.cs:535] UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
 #39  (Mono JIT Code) [EventHandler.cs:152] UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
 #40  (Mono JIT Code) [MouseCaptureDispatchingStrategy.cs:92] UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
 #41  (Mono JIT Code) [EventDispatcher.cs:383] UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
 #42  (Mono JIT Code) [EventDispatcher.cs:347] UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
 #43  (Mono JIT Code) [EventDispatcher.cs:307] UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
 #44  (Mono JIT Code) [EventDispatcher.cs:272] UnityEngine.UIElements.EventDispatcher:OpenGate ()
 #45  (Mono JIT Code) [EventDispatcher.cs:76] UnityEngine.UIElements.EventDispatcherGate:Dispose ()
 #46  (Mono JIT Code) [EventDispatcher.cs:372] UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
 #47  (Mono JIT Code) [EventDispatcher.cs:223] UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
 #48  (Mono JIT Code) [Panel.cs:421] UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
 #49  (Mono JIT Code) [UIElementsUtility.cs:468] UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
 #50  (Mono JIT Code) [UIElementsUtility.cs:211] UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
 #51  (Mono JIT Code) [UIElementsUtility.cs:74] UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
 #52  (Mono JIT Code) [UIElementsUtility.cs:28] UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
 #53  (Mono JIT Code) [GUIUtility.cs:189] UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 #54  (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
 #55 mono_jit_runtime_invoke
 #56 do_runtime_invoke
 #57 mono_runtime_invoke
 #58 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
 #59 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
 #60 Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent(int, void*, bool*, ScriptingExceptionPtr*)
 #61 GUIView::ProcessRetainedMode(InputEvent&, GUIState&, int)
 #62 GUIView::OnInputEvent(InputEvent&)
 #63 GUIView::ProcessInputEvent(InputEvent&)
 #64 -[GUIRenderView handleEvent:]
 #65 -[GUIRenderView mouseUp:]
 #66 _routeMouseUpEvent
 #67 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]
 #68 -[NSWindow(NSEventRouting) sendEvent:]
 #69 -[NSApplication(NSEventRouting) sendEvent:]
 #70 -[EditorApplicationPrincipalClass sendEvent:]
 #71 -[EditorApplication TickTimer]
 #72 __NSFireTimer
 #73 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
 #74 __CFRunLoopDoTimer
 #75 __CFRunLoopDoTimers
 #76 __CFRunLoopRun
 #77 CFRunLoopRunSpecific
 #78 RunCurrentEventLoopInMode
 #79 ReceiveNextEventCommon
 #80 _BlockUntilNextEventMatchingListInModeWithFilter
 #81 _DPSNextEvent
 #82 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
 #83 -[NSApplication run]
 #84 NSApplicationMain
 #85 EditorMain(int, char const**)
 #86 main
 #87 start

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
warning: unknown enum constant Scope.LIBRARY
  reason: class file for androidx.annotation.RestrictTo$Scope not found
warning: unknown enum constant Scope.LIBRARY
Note: /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/src/UnitySampleProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/unity3d/player/UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     /Users/juanmanuelspoleti/.gradle/caches/transforms-2/files-2.1/4ab4c7a56cce953774afe7e3070f88dc/androidx.core.core-1.8.0/res/values/values.xml:104:5-113:25: AAPT: error: resource android:attr/lStar 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 21s

 #0 GetStacktrace(int)
 #1 DebugStringToFile(DebugStringToFileData const&)
 #2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*)
 #3  (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
 #4  (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
 #5  (Mono JIT Code) [Logger.cs:61] UnityEngine.Logger:Log (UnityEngine.LogType,object)
 #6  (Mono JIT Code) [Debug.bindings.cs:130] UnityEngine.Debug:LogError (object)
 #7  (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
 #8  (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
 #9  (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput)
 #10  (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
 #11  (Mono JIT Code) [PostprocessBuildPlayer.cs:371] UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
 #12  (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
 #13 mono_jit_runtime_invoke
 #14 do_runtime_invoke
 #15 mono_runtime_invoke
 #16 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
 #17 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
 #18 CallMono(char const*, char const*, char const*, ScriptingArguments const&)
 #19 DoBuildPlayer(BuildPlayerSetup const&, std::__1::vector<EditorSceneBackup, stl_allocator<EditorSceneBackup, (MemLabelIdentifier)124, 16>>&, core::basic_string<char, core::StringStorageDefault<char>>, dynamic_array<core::basic_string<char, core::StringStorageDefault<char>>, 0ul> const&, bool, BuildReporting::BuildReport&, BuildReporting::BuiltAssetBundleInfo*, core::basic_string<char, core::StringStorageDefault<char>> const&)
 #20 BuildPlayer(BuildPlayerSetup const&, BuildReporting::BuildReport&)
 #21 BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck(ScriptingBackendNativeArrayPtrOpaque*, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeStringPtrOpaque*, BuildTargetPlatformGroup, BuildTargetPlatform, int, BuildPlayerOptions, ScriptingBackendNativeArrayPtrOpaque*, unsigned char)
 #22  (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)
 #23  (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:169] UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
 #24  (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:95] UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
 #25  (Mono JIT Code) [BuildPlayerWindow.cs:187] UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
 #26  (Mono JIT Code) [BuildPlayerWindow.cs:1198] UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
 #27  (Mono JIT Code) [BuildPlayerWindow.cs:1026] UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
 #28  (Mono JIT Code) [BuildPlayerWindow.cs:519] UnityEditor.BuildPlayerWindow:OnGUI ()
 #29  (Mono JIT Code) [HostView.cs:465] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
 #30  (Mono JIT Code) [DockArea.cs:387] UnityEditor.DockArea:DrawView (UnityEngine.Rect)
 #31  (Mono JIT Code) [DockArea.cs:379] UnityEditor.DockArea:OldOnGUI ()
 #32  (Mono JIT Code) [IMGUIContainer.cs:352] UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
 #33  (Mono JIT Code) [IMGUIContainer.cs:695] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
 #34  (Mono JIT Code) [IMGUIContainer.cs:665] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
 #35  (Mono JIT Code) [IMGUIContainer.cs:658] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
 #36  (Mono JIT Code) [IMGUIContainer.cs:618] UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
 #37  (Mono JIT Code) [IMGUIContainer.cs:607] UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
 #38  (Mono JIT Code) [IMGUIContainer.cs:535] UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
 #39  (Mono JIT Code) [EventHandler.cs:152] UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
 #40  (Mono JIT Code) [MouseCaptureDispatchingStrategy.cs:92] UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
 #41  (Mono JIT Code) [EventDispatcher.cs:383] UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
 #42  (Mono JIT Code) [EventDispatcher.cs:347] UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
 #43  (Mono JIT Code) [EventDispatcher.cs:307] UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
 #44  (Mono JIT Code) [EventDispatcher.cs:272] UnityEngine.UIElements.EventDispatcher:OpenGate ()
 #45  (Mono JIT Code) [EventDispatcher.cs:76] UnityEngine.UIElements.EventDispatcherGate:Dispose ()
 #46  (Mono JIT Code) [EventDispatcher.cs:372] UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
 #47  (Mono JIT Code) [EventDispatcher.cs:223] UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
 #48  (Mono JIT Code) [Panel.cs:421] UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
 #49  (Mono JIT Code) [UIElementsUtility.cs:468] UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
 #50  (Mono JIT Code) [UIElementsUtility.cs:211] UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
 #51  (Mono JIT Code) [UIElementsUtility.cs:74] UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
 #52  (Mono JIT Code) [UIElementsUtility.cs:28] UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
 #53  (Mono JIT Code) [GUIUtility.cs:189] UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 #54  (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
 #55 mono_jit_runtime_invoke
 #56 do_runtime_invoke
 #57 mono_runtime_invoke
 #58 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
 #59 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
 #60 Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent(int, void*, bool*, ScriptingExceptionPtr*)
 #61 GUIView::ProcessRetainedMode(InputEvent&, GUIState&, int)
 #62 GUIView::OnInputEvent(InputEvent&)
 #63 GUIView::ProcessInputEvent(InputEvent&)
 #64 -[GUIRenderView handleEvent:]
 #65 -[GUIRenderView mouseUp:]
 #66 _routeMouseUpEvent
 #67 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]
 #68 -[NSWindow(NSEventRouting) sendEvent:]
 #69 -[NSApplication(NSEventRouting) sendEvent:]
 #70 -[EditorApplicationPrincipalClass sendEvent:]
 #71 -[EditorApplication TickTimer]
 #72 __NSFireTimer
 #73 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
 #74 __CFRunLoopDoTimer
 #75 __CFRunLoopDoTimers
 #76 __CFRunLoopRun
 #77 CFRunLoopRunSpecific
 #78 RunCurrentEventLoopInMode
 #79 ReceiveNextEventCommon
 #80 _BlockUntilNextEventMatchingListInModeWithFilter
 #81 _DPSNextEvent
 #82 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
 #83 -[NSApplication run]
 #84 NSApplicationMain
 #85 EditorMain(int, char const**)
 #86 main
 #87 start

CommandInvokationFailure: Gradle build failed. 
/Applications/Unity/Hub/Editor/2021.3.22f1/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java -classpath "/Applications/Unity/Hub/Editor/2021.3.22f1/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

Environment Variables:
AMPLITUDE_API_KEY_REDBUCKET_DEV = 46b8b46515e7632fc42a504b72e05fd0
DEBUG_ENV_VAR = UnityHub
XPC_FLAGS = 0x0
HEAP_CLIENT_TOKEN_STAGING = 3786794399
__CFBundleIdentifier = com.unity3d.unityhub
AMPLITUDE_API_KEY_GREENBUCKET_DEV = 3ded2a762163603391a425f688f990c8
AMPLITUDE_TOKEN_REDBUCKET_DEV = U4PSN7S7PuYVRODivvdcFwbu8R6IHGqa
SECURITYSESSIONID = 186b5
AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
AMPLITUDE_API_KEY_GREENBUCKET_PROD = c86fea37a9e1d3f0878b96e15b111c7c
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
JAVA_HOME = /Applications/Unity/Hub/Editor/2021.3.22f1/PlaybackEngines/AndroidPlayer/OpenJDK
AMPLITUDE_TOKEN_GREENBUCKET_PROD = yyzPzalJDwrQcYNuOZam0bhKb26WyyhK
LAUNCH_DARKLY_CLIENT_TOKEN = 60a7e30fafc7e60e33446283
XPC_SERVICE_NAME = application.com.unity3d.unityhub.39404248.39404254
ANDROID_NDK_ROOT = /Applications/Unity/Hub/Editor/2021.3.22f1/PlaybackEngines/AndroidPlayer/NDK
HEAP_CLIENT_TOKEN = 1717415662
AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
USER = juanmanuelspoleti
MallocNanoZone = 0
LOGNAME = juanmanuelspoleti
__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
AMPLITUDE_API_KEY_YELLOWBUCKET_DEV = 48835b4d1f5e342aefe5f016324d296a
PATH = /usr/bin:/bin:/usr/sbin:/sbin
LaunchInstanceID = F35273D6-71F5-4808-8CB0-74289C7B3614
LAUNCH_DARKLY_CLIENT_TOKEN_STAGING = 60a7e30fafc7e60e33446282
SSH_AUTH_SOCK = /private/tmp/com.apple.launchd.iFCBRRhfZJ/Listeners
AMPLITUDE_API_KEY_YELLOWBUCKET_PROD = e03a9bbe92dc38a88cdb068d24c65b46
AMPLITUDE_TOKEN_REDBUCKET_PROD = QqyoFpcWPi7V17p80_46CF6-sNGRGbHo
AMPLITUDE_TOKEN_YELLOWBUCKET_PROD = Ph-837Q6GNodAkyc2MRkxVPUcjlIET4d
HOME = /Users/juanmanuelspoleti
TMPDIR = /var/folders/jw/nq3jfmgn2hdf6qhjdrvgw3k80000gn/T/
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
AMPLITUDE_TOKEN_GREENBUCKET_DEV = 84H2gMm_FJzhr3mBaX1lM1JVukmCM7d9
AMPLITUDE_TOKEN_YELLOWBUCKET_DEV = wKi8foVigDditGFvmZewRFWsEbX9Y0YO
SHELL = /bin/zsh
AMPLITUDE_API_KEY_REDBUCKET_PROD = ca12bb461ea96f9bdf5df4ded7d52994
COMMAND_MODE = unix2003
BURST_ANDROID_MIN_API_LEVEL = 22

stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
warning: unknown enum constant Scope.LIBRARY
  reason: class file for androidx.annotation.RestrictTo$Scope not found
warning: unknown enum constant Scope.LIBRARY
Note: /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/src/UnitySampleProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/unity3d/player/UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     /Users/juanmanuelspoleti/.gradle/caches/transforms-2/files-2.1/4ab4c7a56cce953774afe7e3070f88dc/androidx.core.core-1.8.0/res/values/values.xml:104:5-113:25: AAPT: error: resource android:attr/lStar 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 21s
]
stdout[
Starting a Gradle Daemon (subsequent builds will be faster)

> 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

> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues
> Task :launcher:generateReleaseBuildConfig
> Task :unityLibrary:generateReleaseResources
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseResValues
> Task :launcher:generateReleaseResources
> Task :launcher:createReleaseCompatibleScreenManifests
> Task :launcher:extractDeepLinksRelease
> Task :launcher:javaPreCompileRelease
> Task :launcher:prepareLintJar
> Task :unityLibrary:packageReleaseResources
> Task :unityLibrary:extractDeepLinksRelease
> Task :launcher:checkReleaseDuplicateClasses
> Task :unityLibrary:generateReleaseBuildConfig
> Task :unityLibrary:javaPreCompileRelease
> Task :unityLibrary:mergeReleaseShaders
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:processReleaseJavaRes
> Task :unityLibrary:parseReleaseLocalResources
> Task :unityLibrary:compileReleaseLibraryResources
> Task :launcher:processReleaseManifest
> Task :unityLibrary:mergeReleaseJniLibFolders
> Task :unityLibrary:generateReleaseRFile
> Task :launcher:mergeReleaseShaders
> Task :launcher:compileReleaseShaders NO-SOURCE
> Task :launcher:generateReleaseAssets UP-TO-DATE
> Task :launcher:mergeReleaseAssets
> Task :launcher:mergeReleaseResources
> Task :launcher:processReleaseResources FAILED

> Task :unityLibrary:compileReleaseJavaWithJavac

> Task :unityLibrary:mergeReleaseNativeLibs
> Task :unityLibrary:bundleLibResRelease
> Task :unityLibrary:prepareLintJarForPublish
> Task :launcher:desugarReleaseFileDependencies
30 actionable tasks: 30 executed
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput buildProgramOutput) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <d9aa0349546a4daeaefd100a44ff9f59>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at /Users/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:370)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)

Screenshots/Video If applicable, add screenshots or screen recordings that help visualize the issue.

Mobile (please complete the following information):

robGG1997 commented 10 months ago

This seems like an issue with Gradle and not our SDK, it could be a Unity issue with an ARM processor issue if built on an M1/M2, my suggestion is to try and reproduce it on a windows device plus try and build an empty project with a similar build configurations on this same device

robGG1997 commented 9 months ago

@juans-chainsafe I'm not on Mac, is it fair if I try and repro it on a windows PC?

juans-chainsafe commented 9 months ago

@juans-chainsafe I'm not on Mac, is it fair if I try and repro it on a windows PC?

Yes, not sure if is a operative system issue, so if it works in windows, at least we will know that happens only in mac

robGG1997 commented 9 months ago

@juans-chainsafe it's building successfully on windows

robGG1997 commented 9 months ago

This seems like an issue with Gradle and not our SDK, it could be a Unity issue with an ARM processor issue if built on an M1/M2, my suggestion is to try and reproduce it on a windows device plus try and build an empty project with a similar build configurations on this same device

@kantagara can you confirm it's not a Mac issue, if you've an M1/M2 (ARM processor)

kantagara commented 9 months ago

Checking

kantagara commented 9 months ago

Actually the error itself is this:

FAILURE: Build failed with an exception.

It has nothing to do with r8

kantagara commented 9 months ago

@robGG1997 everything works for me. @juans-chainsafe is there anything you did with build settings? Developer settings? Or something else?

kantagara commented 8 months ago

Closed as it's marked being fixed.