google / play-unity-plugins

The Google Play Plugins for Unity provide C# APIs for accessing various Play services
Other
425 stars 109 forks source link

Execution failed for task ':launcher:checkReleaseDuplicateClasses'. #78

Open AnatolySnegovskiy opened 3 years ago

AnatolySnegovskiy commented 3 years ago

As I are fed up as not a plugin so constant problems.

Your plugins conflict with your plugins, despite the fact that you have your own checker, there are no words.... zadolbali(((

CommandInvokationFailure: Gradle build failed. C:\Program Files\Unity\Hub\Editor\2020.2.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2020.2.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.6.4.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

`stderr[ Note: C:\GameDev\UnityProjects\Color Gem Puzzle\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

AndreyKopylkov commented 3 years ago

Получилось исправить? Сегодня столкнулся с такой же проблемой при установке AppsFlyer (видимо конфликтует с AdMob)

andrewgbliss commented 3 years ago

I am getting this error as well, any fixes?

gabe-rocha commented 3 years ago

Man! Me too! Can't enable IAP on my app, which was supposed to go live this weekend!

gabe-rocha commented 3 years ago

Ok, so, basically we should NOT follow Google's documentation. We just need to enable Unity IAP service, because it already implements Google Billing. So to fix this problem, just delete folder /Assets/GooglePlayPlugins

andrewgbliss commented 3 years ago

Thanks! That fixed the issue

bfaf commented 3 years ago

It seems @gargaroots is right!

In my case I need some of the other Google stuff (In App Review to be precise) so deleting just /Assets/GooglePlayPlugins/com.google.play.billing solve the issue for me.

abarnert-pg commented 3 years ago

The release notes (https://github.com/google/play-unity-plugins/releases) claim this is fixed in 1.4.0, even though the bug is still open here.

However, when I try with 1.4.0, I get exactly the same behavior as reported here.

The workaround of skipping Google Play Billing during import, or deleting com.google.play.billing after import, seems to work fine (assuming you don't actually need Google Play Billing but do need other parts of the package).

purisahib commented 2 years ago

hello everyOne I am taking this issue FAILURE: Build failed with an exception.

BUILD FAILED in 7s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

0x00007FF7D689258C (Unity) StackWalker::GetCurrentCallstack 0x00007FF7D6896531 (Unity) StackWalker::ShowCallstack 0x00007FF7D4EF5AE5 (Unity) GetStacktrace 0x00007FF7D754FFCE (Unity) DebugStringToFile 0x00007FF7D68F6131 (Unity) DebugLogHandler_CUSTOM_Internal_Log 0x0000020677D4BD1B (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object) 0x0000020677D4BBBB (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) 0x0000020677D4B0DE (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object) 0x000002067FCCFDFA (Mono JIT Code) UnityEngine.Debug:LogError (object) 0x000002067FCDF493 (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException () 0x000002067F917E6B (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext) 0x000002067FBE76EB (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.BuildTarget,string,string,string,string,string,string,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport) 0x000002067FBE50EB (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&) 0x000002067FBE42D2 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport) 0x000002067FBE48A0 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr) 0x00007FF95746E280 (mono-2.0-bdwgc) [mini-runtime.c:2813] mono_jit_runtime_invoke 0x00007FF9573F2AE2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke 0x00007FF9573FBB3F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke 0x00007FF7D6803F3E (Unity) scripting_method_invoke 0x00007FF7D67FD98D (Unity) ScriptingInvocation::Invoke 0x00007FF7D47176B5 (Unity) CallMono 0x00007FF7D473536D (Unity) PostprocessPlayer 0x00007FF7D47202DD (Unity) DoBuildPlayer_PostBuild 0x00007FF7D470E2CB (Unity) BuildPlayer 0x00007FF7D555C008 (Unity) BuildPipeline::BuildPlayerInternalNoCheck 0x00007FF7D5559D0E (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck 0x000002067F882593 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,UnityEditor.BuildOptions,bool) 0x000002067F8812F3 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions) 0x000002067F876E83 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions) 0x000002067EF56BE3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform) 0x000002067EF35D6B (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings () 0x000002067EF1B473 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI () 0x000002067D6B3F40 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_voidthis (object,intptr,intptr,intptr) 0x00007FF95746E280 (mono-2.0-bdwgc) [mini-runtime.c:2813] mono_jit_runtime_invoke 0x00007FF9573F2AE2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke 0x00007FF9573FBD12 (mono-2.0-bdwgc) [object.c:3073] mono_runtime_invoke_checked 0x00007FF9573FC4A9 (mono-2.0-bdwgc) [object.c:5264] mono_runtime_try_invoke_array 0x00007FF9573FBCA6 (mono-2.0-bdwgc) [object.c:5142] mono_runtime_invoke_array_checked 0x00007FF9573A0494 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke 0x00000206732A7DE6 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) 0x00000206732A67EB (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) 0x00000206745C9DDF (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[]) 0x0000020676AD712B (Mono JIT Code) UnityEditor.HostView:Invoke (string,object) 0x0000020676AD6F9B (Mono JIT Code) UnityEditor.HostView:Invoke (string) 0x0000020676D1F85B (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect) 0x0000020676D1F313 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect) 0x0000020676D0AD6B (Mono JIT Code) UnityEditor.DockArea:OldOnGUI () 0x0000020676CD5D8A (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool) 0x0000020676CD3A53 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool) 0x0000020676CD17DB (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool) 0x0000020676CD13C3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool) 0x0000020676CD0FB3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool) 0x0000020675EFD343 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase) 0x0000020675EEDA46 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase) 0x0000020676CCF813 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) 0x0000020675EE7C86 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool) 0x0000020675EE68D3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) 0x0000020675EE5B73 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue () 0x0000020675EE580B (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate () 0x0000020675EE55AB (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose () 0x0000020675EE71DB (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) 0x0000020675EE0613 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode) 0x0000020675EE017B (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode) 0x0000020676C95DE3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel) 0x0000020676C9510B (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:ProcessEvent (int,intptr) 0x0000020676C94973 (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr) 0x0000020676C94BF3 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr) 0x00007FF95746E280 (mono-2.0-bdwgc) [mini-runtime.c:2813] mono_jit_runtime_invoke 0x00007FF9573F2AE2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke 0x00007FF9573FBB3F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke 0x00007FF7D6803F3E (Unity) scripting_method_invoke 0x00007FF7D67FD98D (Unity) ScriptingInvocation::Invoke 0x00007FF7D67F73EA (Unity) ScriptingInvocation::Invoke 0x00007FF7D3A75965 (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent 0x00007FF7D44A61B4 (Unity) GUIView::ProcessRetainedMode 0x00007FF7D4F1C831 (Unity) GUIView::OnInputEvent 0x00007FF7D44A60AC (Unity) GUIView::ProcessInputEvent 0x00007FF7D4F1E235 (Unity) GUIView::ProcessEventMessages 0x00007FF7D4F16429 (Unity) GUIView::GUIViewWndProc 0x00007FF9B5C5E7E8 (USER32) CallWindowProcW 0x00007FF9B5C5E229 (USER32) DispatchMessageW 0x00007FF7D4F1B4CB (Unity) MainMessageLoop 0x00007FF7D4F257C8 (Unity) WinMain 0x00007FF7D8019472 (Unity) __scrt_common_main_seh 0x00007FF9B6A17034 (KERNEL32) BaseThreadInitThunk 0x00007FF9B76A2651 (ntdll) RtlUserThreadStart

purisahib commented 2 years ago

any solution these problem

brizzinck commented 1 year ago

Получилось исправить? Сегодня столкнулся с такой же проблемой при установке AppsFlyer (видимо конфликтует с AdMob)

а у тебя получилось?

Abbabon commented 1 year ago

Writing from the future to let you know I've solved the issue here by disabling any custom gradle scripts, deleting them, and letting Unity 2022.3 regenerate them.