Assertion failed on expression: 'klass != NULL' while building for Android

I have an error while trying to build project for Android inside docker.
The problem appeared in 2018.3* version, in 2018.2 it worked ok.
Any help?

Assertion failed on expression: 'klass != NULL'
 
(Filename: /home/builduser/buildslave/unity/build/Editor/Src/ScriptCompilation/ScriptCompilationPipeline.cpp Line: 1292)

Receiving unhandled NULL exception
#0  0x00000000e1bdf3 in scripting_array_new(ScriptingClassPtr, unsigned long, unsigned long)
#1  0x000000011cc11e in GetUnityAssembliesManaged(bool, BuildTargetPlatform)
#2  0x000000011cc2a2 in SetAllUnityAssemblies(bool, BuildTargetPlatform)
#3  0x000000011cf0a0 in SetUnityAndPrecompiledAssembliesForEditor()
#4  0x000000011d15ed in InitializeManagedCompilationPipeline()
#5  0x000000011d3b82 in LoadMonoAssembliesAndRecompileIfNecessary(bool)
#6  0x00000001918b2e in Application::InitializeProject()
#7  0x00000001a9326c in InitializeUnity(void*)
#8  0x007fdefc5c3ab3 in g_source_get_time
#9  0x007fdefc5c304a in g_main_context_dispatch
#10 0x007fdefc5c33f0 in g_main_context_dispatch
#11 0x007fdefc5c3712 in g_main_loop_run
#12 0x007fdefd573395 in gtk_main
#13 0x000000004f8653 in main
#14 0x007fdef3428830 in __libc_start_main
#15 0x0000000054dac9 in _start
Aborted (core dumped)

Workaround is here