DOTNETCORECLI#2 Publish succeeds but no artifacts - .net-core

I have a legacy project and want to get into Azure Devops pipelines. I have a build pipeline setup and build seems to succeed. I've added a DotnetcoreCli Publish task and this succeeds but I never have any artifacts available after running so can't implement a Release pipeline.
Wondering if anyone can spot anything daft I've done?
These are the Tasks defined in my pipeline:
- task: DotNetCoreCLI#2
inputs:
command: 'build'
projects: '$(solution)'
arguments: '--configuration $(buildConfiguration)'
displayName: 'dotnet build $(buildConfiguration)'
- task: DotNetCoreCLI#2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/UAT'))
inputs:
command: 'publish'
publishWebProjects: true
configuration: $(BuildConfiguration)
arguments: '--output $(Build.ArtifactStagingDirectory) --verbosity detailed'
zipAfterPublish: false # We want individual files published, not a zip
This is the end of the trace of my Publish task:
(entry point): 2021-09-09T08:57:26.4983992Z Task "Message"
2021-09-09T08:57:26.4984515Z MYOrg.MyApp.UI ->
D:\a\1\a\Staging\MYOrg.MyApp.UI\ 2021-09-09T08:57:26.4985051Z
Done executing task "Message". 2021-09-09T08:57:26.4985655Z
1>Done building target "Publish" in project "MYOrg.MyApp.UI.csproj".
2021-09-09T08:57:26.4986271Z Target
"_InitProjectCapabilityProperties" skipped. Previously built
successfully. 2021-09-09T08:57:26.4991632Z 1>Target
"_InitPublishIntermediateOutputPath" in file
"C:\hostedtoolcache\windows\dotnet\sdk\2.0.3\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\DotNetCLIToolTargets\Microsoft.NET.Sdk.DotNetCLITool.targets"
from project "D:\a\1\s\MYOrg.MyApp.UI\MYOrg.MyApp.UI.csproj" (target
"_AspNetCoreProjectSystemPostPublish" depends on it):
2021-09-09T08:57:26.4992847Z Task "ConvertToAbsolutePath"
2021-09-09T08:57:26.4993300Z Done executing task
"ConvertToAbsolutePath". 2021-09-09T08:57:26.4993889Z 1>Done
building target "_InitPublishIntermediateOutputPath" in project
"MYOrg.MyApp.UI.csproj". 2021-09-09T08:57:26.4994986Z 1>Target
"_TransformWebConfig" in file
"C:\hostedtoolcache\windows\dotnet\sdk\2.0.3\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\TransformTargets\Microsoft.NET.Sdk.Publish.TransformFiles.targets" from project "D:\a\1\s\MYOrg.MyApp.UI\MYOrg.MyApp.UI.csproj" (target
"_AspNetCoreProjectSystemPostPublish" depends on it):
2021-09-09T08:57:26.4996207Z Using "TransformWebConfig" task
from assembly
"C:\hostedtoolcache\windows\dotnet\sdk\2.0.3\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0....\tools\netcoreapp1.0\Microsoft.NET.Sdk.Publish.Tasks.dll".
2021-09-09T08:57:26.4997005Z Task "TransformWebConfig"
2021-09-09T08:57:26.5010124Z Configuring the following
project for use with IIS: 'D:\a\1\a\Staging\MYOrg.MyApp.UI'
2021-09-09T08:57:26.5010856Z Updating web.config at
'D:\a\1\a\Staging\MYOrg.MyApp.UI\web.config'
2021-09-09T08:57:26.5129541Z Configuring project completed
successfully 2021-09-09T08:57:26.5140303Z Done executing task
"TransformWebConfig". 2021-09-09T08:57:26.5143720Z 1>Done
building target "_TransformWebConfig" in project
"MYOrg.MyApp.UI.csproj". 2021-09-09T08:57:26.5145086Z 1>Target
"_TransformAppSettings" in file
"C:\hostedtoolcache\windows\dotnet\sdk\2.0.3\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\TransformTargets\Microsoft.NET.Sdk.Publish.TransformFiles.targets" from project "D:\a\1\s\MYOrg.MyApp.UI\MYOrg.MyApp.UI.csproj" (target
"_AspNetCoreProjectSystemPostPublish" depends on it):
2021-09-09T08:57:26.5146333Z Task "TransformAppSettings"
skipped, due to false condition; ('$(_IsAspNetCoreProject)' == 'true'
And '$(IsTransformAppSettingsDisabled)' != 'true' And
#(DestinationConnectionStrings) != '') was evaluated as ('true' ==
'true' And '' != 'true' And != ''). 2021-09-09T08:57:26.5153800Z
1>Done building target "_TransformAppSettings" in project
"MYOrg.MyApp.UI.csproj". 2021-09-09T08:57:26.5156303Z 1>Target
"_GenerateEFSQLScripts" in file
"C:\hostedtoolcache\windows\dotnet\sdk\2.0.3\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\TransformTargets\Microsoft.NET.Sdk.Publish.TransformFiles.targets" from project "D:\a\1\s\MYOrg.MyApp.UI\MYOrg.MyApp.UI.csproj" (target
"_AspNetCoreProjectSystemPostPublish" depends on it):
2021-09-09T08:57:26.5157868Z Task "GenerateEFSQLScripts"
skipped, due to false condition; ('$(_IsAspNetCoreProject)' == 'true'
And '$(IsGenerateEFSQLScriptsDisabled)' != 'true' And #(EfMigrations)
!= '') was evaluated as ('true' == 'true' And '' != 'true' And !=
''). 2021-09-09T08:57:26.5180482Z 1>Done building target
"_GenerateEFSQLScripts" in project "MYOrg.MyApp.UI.csproj".
2021-09-09T08:57:26.5183010Z 1>Target "_GenerateRunCommandFile"
in file
"C:\hostedtoolcache\windows\dotnet\sdk\2.0.3\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\TransformTargets\Microsoft.NET.Sdk.Publish.TransformFiles.targets" from project "D:\a\1\s\MYOrg.MyApp.UI\MYOrg.MyApp.UI.csproj" (target
"_AspNetCoreProjectSystemPostPublish" depends on it):
2021-09-09T08:57:26.5185028Z Task "GenerateRunCommandFile"
skipped, due to false condition; ('$(_IsWebJobProject)' == 'true' And
'$(IsGenerateRunCommandFileDisabled)' != 'true') was evaluated as (''
== 'true' And '' != 'true'). 2021-09-09T08:57:26.5185862Z 1>Done building target "_GenerateRunCommandFile" in project
"MYOrg.MyApp.UI.csproj". 2021-09-09T08:57:26.5186601Z Target
"_PublishFiles" skipped, due to false condition; ('$(PublishProtocol)'
!= 'FileSystem' And '$(PublishProtocol)' != '') was evaluated as
('FileSystem' != 'FileSystem' And 'FileSystem' != '').
2021-09-09T08:57:26.5187820Z 1>Target
"_AspNetCoreProjectSystemPostPublish" in file
"C:\hostedtoolcache\windows\dotnet\sdk\2.0.3\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\DotNetCLIToolTargets\Microsoft.NET.Sdk.DotNetCLITool.targets"
from project "D:\a\1\s\MYOrg.MyApp.UI\MYOrg.MyApp.UI.csproj" (target
"_DotNetCLIPostPublish" depends on it): 2021-09-09T08:57:26.5188885Z
1>Done building target "_AspNetCoreProjectSystemPostPublish" in
project "MYOrg.MyApp.UI.csproj". 2021-09-09T08:57:26.5189885Z
1>Target "AfterPublish" in file
"C:\hostedtoolcache\windows\dotnet\sdk\2.0.3\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\Microsoft.NET.Sdk.Publish.targets"
from project "D:\a\1\s\MYOrg.MyApp.UI\MYOrg.MyApp.UI.csproj" (target
"_DotNetCLIPostPublish" depends on it): 2021-09-09T08:57:26.5190833Z
1>Done building target "AfterPublish" in project
"MYOrg.MyApp.UI.csproj". 2021-09-09T08:57:26.5191798Z 1>Target
"_DotNetCLIPostPublish" in file
"C:\hostedtoolcache\windows\dotnet\sdk\2.0.3\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\DotNetCLIToolTargets\Microsoft.NET.Sdk.DotNetCLITool.targets"
from project "D:\a\1\s\MYOrg.MyApp.UI\MYOrg.MyApp.UI.csproj" (entry
point): 2021-09-09T08:57:26.5192771Z 1>Done building target
"_DotNetCLIPostPublish" in project "MYOrg.MyApp.UI.csproj".
2021-09-09T08:57:26.5193415Z 1>Done Building Project
"D:\a\1\s\MYOrg.MyApp.UI\MYOrg.MyApp.UI.csproj" (Publish target(s)).
2021-09-09T08:57:26.5210238Z 2021-09-09T08:57:26.5225190Z Build
succeeded. 2021-09-09T08:57:26.5260048Z 0 Warning(s)
2021-09-09T08:57:26.5260950Z 0 Error(s)

After dontet publish command you need to make Azure Pipeline artifact.
You can do this in this way:
- publish: $(Build.ArtifactStagingDirectory)
artifact: WebApp
Here you have documentation about this. After that, you will get an artifact available for release pipeline.

Related

Trouble publishing WASM Uno Solution to App Service Azure and a local Publish folder (Error CS2012)

When I try to publish my Uno Platform WASM solution from within Visual Studio 2019 Version 16.9.0 either to an App Service in Azure or to a local publish folder I get the following error.
CSC(0,0): Error CS2012: Cannot open 'C:\Users...\obj\Release\netstandard2.0\FileName.Wasm.dll' for writing -- 'The process cannot access the file 'C:\Users...\obj\Release\netstandard2.0\FileName.Wasm.dll' because it is being used by another process.'
I have had this problem before and then I have moved the entire solution to another folder (with shorter filepath) and been able to publish from there. This time that doesn't work either.
I have tried rebooting and only starting Visual Studio and trying to publish directly, cleaning the solution and adding the following in the Wasm.csproj file
<PropertyGroup>
<WasmShellEnableLongPathSupport>false</WasmShellEnableLongPathSupport>
</PropertyGroup>
But still no go.
I am using Uno... v3.5.1 and Uno.Wasm... v1.3.6
An update: I noticed that it starts to run Roslyn\csc.exe after the publish has started. Could this explain it?
1>------ Build started: Project: Client.Wasm, Configuration: Release Any CPU ------
1>Client.Wasm -> C:\...\bin\Release\netstandard2.0\Client.Wasm.dll
1>Done building project "Client.Wasm.csproj".
2>------ Publish started: Project: Client.Wasm, Configuration: Release Any CPU ------
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:NU1701,1701,1702,2008 /fullpaths /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;RELEASE;NETSTANDARD;NETSTANDARD2_0;UNO_REFERENCE_API;HAS_UNO_WASM;__WASM__;UNO_REFERENCE_API;HAS_UNO_WASM;__WASM__;HAS_UNO;UNO_HAS_FRAMEWORKELEMENT_MEASUREOVERRIDE;UNO_HAS_NO_IDEPENDENCYOBJECT;UNO_REFERENCE_API /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:C:\Users\nivu\.nuget\packages\commonservicelocator\2.0.5\lib\netstandard2.0\CommonServiceLocator.dll /reference:C:\Users\nivu\.nuget\packages\microsoft.extensions.configuration.abstractions\1.1.1\lib\netstandard1.0\Microsoft.Extensions.Configuration.Abstractions.dll /reference:C:\Users\nivu\.nuget\packages\microsoft.extensions.dependencyinjection.abstractions\1.1.0\lib\netstandard1.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll /reference:C:\Users\nivu\.nuget\packages\microsoft.extensions.logging.abstractions\1.1.1\lib\netstandard1.1\Microsoft.Extensions.Logging.Abstractions.dll /reference:C:\Users\nivu\.nuget\packages\microsoft.extensions.logging.console\1.1.1\lib\netstandard1.3\Microsoft.Extensions.Logging.Console.dll /reference:C:\Users\nivu\.nuget\packages\microsoft.extensions.logging\1.1.1\lib\netstandard1.1\Microsoft.Extensions.Logging.dll /reference:C:\Users\nivu\.nuget\packages\microsoft.extensions.logging.filter\1.1.1\lib\netstandard1.1\Microsoft.Extensions.Logging.Filter.dll /reference:C:\Users\nivu\.nuget\packages\microsoft.extensions.primitives\1.1.0\lib\netstandard1.0\Microsoft.Extensions.Primitives.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\Microsoft.Win32.Primitives.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\mscorlib.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\netstandard.dll /reference:C:\Users\nivu\.nuget\packages\newtonsoft.json\12.0.3\lib\netstandard2.0\Newtonsoft.Json.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.AppContext.dll /reference:C:\Users\nivu\.nuget\packages\system.buffers\4.5.1\ref\netstandard2.0\System.Buffers.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Collections.Concurrent.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Collections.dll /reference:C:\Users\nivu\.nuget\packages\system.collections.immutable\1.3.1\lib\netstandard1.0\System.Collections.Immutable.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Collections.NonGeneric.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Collections.Specialized.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.ComponentModel.Composition.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.ComponentModel.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.ComponentModel.EventBasedAsync.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.ComponentModel.Primitives.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.ComponentModel.TypeConverter.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Console.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Core.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Data.Common.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Data.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Diagnostics.Contracts.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Diagnostics.Debug.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Diagnostics.FileVersionInfo.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Diagnostics.Process.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Diagnostics.StackTrace.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Diagnostics.TextWriterTraceListener.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Diagnostics.Tools.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Diagnostics.TraceSource.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Diagnostics.Tracing.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Drawing.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Drawing.Primitives.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Dynamic.Runtime.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Globalization.Calendars.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Globalization.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Globalization.Extensions.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.Compression.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.Compression.FileSystem.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.Compression.ZipFile.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.FileSystem.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.FileSystem.DriveInfo.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.FileSystem.Primitives.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.FileSystem.Watcher.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.IsolatedStorage.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.MemoryMappedFiles.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.Pipes.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.IO.UnmanagedMemoryStream.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Linq.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Linq.Expressions.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Linq.Parallel.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Linq.Queryable.dll /reference:C:\Users\nivu\.nuget\packages\system.memory\4.5.4\lib\netstandard2.0\System.Memory.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.Http.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.NameResolution.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.NetworkInformation.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.Ping.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.Primitives.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.Requests.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.Security.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.Sockets.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.WebHeaderCollection.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.WebSockets.Client.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Net.WebSockets.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Numerics.dll /reference:C:\Users\nivu\.nuget\packages\system.numerics.vectors\4.5.0\ref\netstandard2.0\System.Numerics.Vectors.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.ObjectModel.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Reflection.dll /reference:C:\Users\nivu\.nuget\packages\system.reflection.emit.ilgeneration\4.3.0\ref\netstandard1.0\System.Reflection.Emit.ILGeneration.dll /reference:C:\Users\nivu\.nuget\packages\system.reflection.emit.lightweight\4.3.0\ref\netstandard1.0\System.Reflection.Emit.Lightweight.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Reflection.Extensions.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Reflection.Primitives.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Resources.Reader.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Resources.ResourceManager.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Resources.Writer.dll /reference:C:\Users\nivu\.nuget\packages\system.runtime.compilerservices.unsafe\4.5.3\ref\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.CompilerServices.VisualC.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.Extensions.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.Handles.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.InteropServices.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.InteropServices.RuntimeInformation.dll /reference:C:\Users\nivu\.nuget\packages\system.runtime.interopservices.windowsruntime\4.3.0\ref\netstandard1.0\System.Runtime.InteropServices.WindowsRuntime.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.Numerics.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.Serialization.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.Serialization.Formatters.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.Serialization.Json.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.Serialization.Primitives.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Runtime.Serialization.Xml.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Security.Claims.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Security.Cryptography.Algorithms.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Security.Cryptography.Csp.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Security.Cryptography.Encoding.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Security.Cryptography.Primitives.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Security.Cryptography.X509Certificates.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Security.Principal.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Security.SecureString.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.ServiceModel.Web.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Text.Encoding.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Text.Encoding.Extensions.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Text.RegularExpressions.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Threading.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Threading.Overlapped.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Threading.Tasks.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Threading.Tasks.Parallel.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Threading.Thread.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Threading.ThreadPool.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Threading.Timer.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Transactions.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.ValueTuple.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Web.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Windows.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Xml.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Xml.Linq.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Xml.ReaderWriter.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Xml.Serialization.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Xml.XDocument.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Xml.XmlDocument.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Xml.XmlSerializer.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Xml.XPath.dll /reference:C:\Users\nivu\.nuget\packages\netstandard.library\2.0.3\build\netstandard2.0\ref\System.Xml.XPath.XDocument.dll /reference:C:\Users\nivu\.nuget\packages\uno.core\2.2.0\lib\netstandard2.0\Uno.Core.dll /reference:C:\Users\nivu\.nuget\packages\uno.diagnostics.eventing\1.0.4\lib\netstandard2.0\Uno.Diagnostics.Eventing.dll /reference:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\lib\netstandard2.0\Uno.dll /reference:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\lib\netstandard2.0\Uno.Foundation.dll /reference:C:\Users\nivu\.nuget\packages\uno.foundation.runtime.webassembly\3.5.1\lib\netstandard2.0\Uno.Foundation.Runtime.WebAssembly.dll /reference:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\lib\netstandard2.0\Uno.UI.dll /reference:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\lib\netstandard2.0\Uno.UI.FluentTheme.dll /reference:C:\Users\nivu\.nuget\packages\uno.ui.runtime.webassembly\3.5.1\lib\netstandard2.0\Uno.UI.Runtime.WebAssembly.dll /reference:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\lib\netstandard2.0\Uno.UI.Toolkit.dll /reference:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\lib\netstandard2.0\Uno.Xaml.dll /debug+ /debug:portable /filealign:512 /optimize+ /out:obj\Release\netstandard2.0\Client.Wasm.dll /resource:WasmCSS\Fonts.css,Client.Wasm.WasmCSS.Fonts.css /resource:WasmScripts\AppManifest.js,Client.Wasm.WasmScripts.AppManifest.js /resource:LinkerConfig.xml,Client.Wasm.xml /resource:C:\source\Admin\Client\Client\Client.Wasm\obj\Release\netstandard2.0\g\ResourcesGenerator\Strings\en\Resources.resw\Resources.upri,Strings.en.Resources.resw.Resources.upri /target:exe /warnaserror- /utf8output /deterministic+ /langversion:7.3 /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\Uno.Analyzers.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\CommonServiceLocator.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Microsoft.ApplicationInsights.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Microsoft.DotNet.PlatformAbstractions.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Microsoft.Extensions.Logging.Abstractions.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Microsoft.Extensions.Logging.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Mono.Cecil.Mdb.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Mono.Cecil.Pdb.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Mono.Cecil.Rocks.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Mono.Cecil.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\System.Diagnostics.DiagnosticSource.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Uno.Core.dll /analyzer:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Uno.Xaml.dll /additionalfile:C:\source\Admin\Client\Client\Client.Shared\MainPage.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Pages\BaseData.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Pages\BlankPage.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Pages\CustomerPage.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Pages\HomePage.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Pages\InspectionPage.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Pages\InspectionTemplatePage.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Pages\MachinesPage.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Pages\SettingsPages\CommentsPage.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Pages\SettingsPages\InspectionSummariesPage.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Pages\SettingsPages\StatusPage.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\App.xaml /additionalfile:C:\source\Admin\Client\Client\Client.Shared\Strings\en\Resources.resw /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\Uno.Analyzers.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\CommonServiceLocator.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Microsoft.ApplicationInsights.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Microsoft.DotNet.PlatformAbstractions.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Microsoft.Extensions.Logging.Abstractions.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Microsoft.Extensions.Logging.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Mono.Cecil.Mdb.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Mono.Cecil.Pdb.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Mono.Cecil.Rocks.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Mono.Cecil.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\System.Diagnostics.DiagnosticSource.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Uno.Core.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Uno.UI.SourceGenerators.dll /additionalfile:C:\Users\nivu\.nuget\packages\uno.ui\3.5.1\analyzers\dotnet\cs\Uno.Xaml.dll Program.cs C:\source\Admin\Client\Client\Client.Shared\App.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Helpers\Authenticator.cs C:\source\Admin\Client\Client\Client.Shared\Helpers\DsipachedBindableBase.cs C:\source\Admin\Client\Client\Client.Shared\Helpers\IdHolders\SavedTemplateIds.cs C:\source\Admin\Client\Client\Client.Shared\Helpers\IdHolders\StaticTypes.cs C:\source\Admin\Client\Client\Client.Shared\Helpers\IdHolders\UriItem.cs C:\source\Admin\Client\Client\Client.Shared\Helpers\RelayCommand.cs C:\source\Admin\Client\Client\Client.Shared\Helpers\RESTMessage.cs C:\source\Admin\Client\Client\Client.Shared\Helpers\UnoHttpClientHandler.cs C:\source\Admin\Client\Client\Client.Shared\MainPage.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\Addresses.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\AddressTypes.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\AllTypes.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\CheckTypes.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\ClientSettings.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\Comments.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\CommentsForCreation.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\ContactForCreationDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\ContactForUpdateDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\Contacts.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\Customers.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\GUIBase.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\IInspection.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\InspectionCommentsDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\InspectionComponentDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\InspectionItemDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\InspectionItemsForUpdateDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\InspectionResourceDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\InspectionSegmentDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\InspectionTableRowDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\InspectionTemplateDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\InspectionTemplateForCreationDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\InspectionTemplates.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\Machines.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\MachinesForCreationDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\MachineTypes.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\Parts.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\PredefinedSummary.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\TemplateComponents.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\TemplateItemComments.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\TemplateItems.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\Templates.cs C:\source\Admin\Client\Client\Client.Shared\Models\DataModels\TemplateSegments.cs C:\source\Admin\Client\Client\Client.Shared\Models\ForCreation\ClientSettingsForCreationDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\ForCreation\CloneForCreationDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\ForCreation\InspectionItemCommentsForCreationDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\ForCreation\PredifinedSummaryForCreationDto.cs C:\source\Admin\Client\Client\Client.Shared\Models\ForCreation\TemplateItemCommentsForCreationDto.cs C:\source\Admin\Client\Client\Client.Shared\Pages\BaseData.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Pages\BlankPage.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Pages\CustomerPage.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Pages\HomePage.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Pages\InspectionPage.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Pages\InspectionTemplatePage.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Pages\MachinesPage.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Pages\SettingsPages\CommentsPage.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Pages\SettingsPages\InspectionSummariesPage.xaml.cs C:\source\Admin\Client\Client\Client.Shared\Pages\SettingsPages\StatusPage.xaml.cs C:\source\Admin\Client\Client\Client.Shared\ValueConverters\AddressTypeToString.cs C:\source\Admin\Client\Client\Client.Shared\ValueConverters\BoolToInvertedBool.cs C:\source\Admin\Client\Client\Client.Shared\ValueConverters\BoolTrueToColor.cs C:\source\Admin\Client\Client\Client.Shared\ValueConverters\CheckTypeIdToString.cs C:\source\Admin\Client\Client\Client.Shared\ValueConverters\IntegerToString.cs ---

React Native Firebase Android always crash 0.61

Issue
I tried to add the react-native-firebase library https://github.com/invertase/react-native-firebase and everything works perfectly on iOS. When it comes to integration on android, nothing works.
The project Builds correctly, but the app crashes (only in Android) right after the build with this output:
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1099 file(s) to forward-jetify. Using 16 workers...
info Starting JS server...
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
> Configure project :#react-native-firebase_analytics
:#react-native-firebase_analytics:firebase.bom using default value: 21.1.0
:#react-native-firebase_analytics package.json found at /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/node_modules/#react-native-firebase/analytics/package.json
:#react-native-firebase_analytics:version set from package.json: 6.0.3 (6,0,3 - 6000003)
:#react-native-firebase_analytics:android.compileSdk using custom value: 28:#react-native-firebase_analytics:android.targetSdk using custom value: 28
:#react-native-firebase_analytics:android.minSdk using custom value: 16
:#react-native-firebase_analytics:reactNativeAndroidDir /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/node_modules/react-native/android
> Configure project :#react-native-firebase_app
:#react-native-firebase_app:firebase.bom using default value: 21.1.0
:#react-native-firebase_app package.json found at /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/node_modules/#react-native-firebase/app/package.json
:#react-native-firebase_app:version set from package.json: 6.0.3 (6,0,3 - 6000003)
:#react-native-firebase_app:android.compileSdk using custom value: 28
:#react-native-firebase_app:android.targetSdk using custom value: 28
:#react-native-firebase_app:android.minSdk using custom value: 16
:#react-native-firebase_app:reactNativeAndroidDir /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/node_modules/react-native/android
> Configure project :app
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
> Task :app:processDebugGoogleServices
Parsing json file: /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/android/app/google-services.j
son
> Task :app:installDebug
12:49:58 V/ddms: execute: running am get-config
12:49:58 V/ddms: execute 'am get-config' on 'emulator-5554' : EOF hit. Read: -1
12:49:58 V/ddms: execute: returning
Installing APK 'app-debug.apk' on '3.7_WVGA_Nexus_One_API_28(AVD) - 9' for app:debug
12:49:58 D/app-debug.apk: Uploading app-debug.apk onto device 'emulator-5554'
12:49:58 D/Device: Uploading file onto device 'emulator-5554'
12:49:58 D/ddms: Reading file permision of /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/android/app/build/outputs/apk/debug/app-debug.apk as: rw-r--r--
12:49:59 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk"
12:50:02 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on 'emulator-5554' : E
OF hit. Read: -1
12:50:02 V/ddms: execute: returning
12:50:02 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk"
12:50:02 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on 'emulator-5554' : EOF hit. Read:
-1
12:50:02 V/ddms: execute: returning
Installed on 1 device.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 7s
192 actionable tasks: 3 executed, 189 up-to-date
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=com.halfy_app/.MainActivity }
MBP-di-Enzo:halfy_app enzomanuelmangano$
MBP-di-Enzo:halfy_app enzomanuelmangano$ react-native run-android --log
error: unknown option `--log'
MBP-di-Enzo:halfy_app enzomanuelmangano$ react-native run-android -log
error: unknown option `-l'
MBP-di-Enzo:halfy_app enzomanuelmangano$ react-native run-android
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
- react-native-maps (to unlink run: "react-native unlink react-native-maps")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.
Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1099 file(s) to forward-jetify. Using 16 workers...
info JS server already running.
info Installing the app...
> Configure project :#react-native-firebase_analytics
:#react-native-firebase_analytics:firebase.bom using default value: 21.1.0
:#react-native-firebase_analytics package.json found at /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/node_modules/#react-native-firebase/analytics/package.json
:#react-native-firebase_analytics:version set from package.json: 6.0.3 (6,0,3 - 6000003)
:#react-native-firebase_analytics:android.compileSdk using custom value: 28
:#react-native-firebase_analytics:android.targetSdk using custom value: 28
:#react-native-firebase_analytics:android.minSdk using custom value: 16
:#react-native-firebase_analytics:reactNativeAndroidDir /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/node_modules/react-native/android
> Configure project :#react-native-firebase_app
:#react-native-firebase_app:firebase.bom using default value: 21.1.0
:#react-native-firebase_app package.json found at /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/node_modules/#react-native-firebase/app/package.json
:#react-native-firebase_app:version set from package.json: 6.0.3 (6,0,3 - 6000003)
:#react-native-firebase_app:android.compileSdk using custom value: 28
:#react-native-firebase_app:android.targetSdk using custom value: 28
:#react-native-firebase_app:android.minSdk using custom value: 16
:#react-native-firebase_app:reactNativeAndroidDir /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/node_modules/react-native/android
> Configure project :app
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
> Task :app:processDebugGoogleServices
Parsing json file: /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/android/app/google-services.j
son
> Task :app:installDebug
12:51:39 V/ddms: execute: running am get-config
12:51:39 V/ddms: execute 'am get-config' on 'emulator-5554' : EOF hit. Read: -1
12:51:39 V/ddms: execute: returning
Installing APK 'app-debug.apk' on '3.7_WVGA_Nexus_One_API_28(AVD) - 9' for app:debug
12:51:39 D/app-debug.apk: Uploading app-debug.apk onto device 'emulator-5554'
12:51:39 D/Device: Uploading file onto device 'emulator-5554'
12:51:39 D/ddms: Reading file permision of /Users/enzomanuelmangano/Desktop/Lavoro/halfy_app/android/app/build/outputs/apk/debug/app-debug.apk as: rw-r--r--
12:51:39 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk"
12:51:40 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on 'emulator-5554' : EOF hit. Read:
12:51:40 V/ddms: execute: returning
12:51:40 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk"
12:51:40 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on 'emulator-5554' : EOF hit. Read: -1
12:51:40 V/ddms: execute: returning
Installed on 1 device.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 4s
192 actionable tasks: 3 executed, 189 up-to-date
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=com.halfy_app/.MainActivity }
Android
android/build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 22
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
playServicesVersion = "17.0.0"
androidMapsUtilsVersion = "0.5+"
}
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:3.4.2")
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
maven { url 'https://jitpack.io' }
}
}
android/app/build.gradle
apply plugin: "com.android.application"
apply plugin: 'com.google.gms.google-services'
import com.android.build.OutputFile
project.ext.react = [
entryFile: "index.js",
enableHermes: false, // clean and rebuild if changing
]
apply from: "../../node_modules/react-native/react.gradle"
/**
* Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices
* - An APK that only works on x86 devices
* The advantage is the size of the APK is reduced by about 4MB.
* Upload all the APKs to the Play Store and people will download
* the correct one based on the CPU architecture of their device.
*/
def enableSeparateBuildPerCPUArchitecture = false
/**
* Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = false
/**
* The preferred build flavor of JavaScriptCore.
*
* For example, to use the international variant, you can use:
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
*
* The international variant includes ICU i18n library and necessary data
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
* give correct results when using with locales other than en-US. Note that
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'org.webkit:android-jsc:+'
/**
* Whether to enable the Hermes VM.
*
* This should be set on project.ext.react and mirrored here. If it is not set
* on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
* and the benefits of using Hermes will therefore be sharply reduced.
*/
def enableHermes = project.ext.react.get("enableHermes", false);
android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "com.halfy_app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
}
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://facebook.github.io/react-native/docs/signed-apk-android.
signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// https://developer.android.com/studio/build/configure-apk-splits.html
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02'
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+" // From node_modules
implementation 'com.google.firebase:firebase-analytics:17.2.1'
implementation(project(':react-native-maps')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
implementation 'com.google.android.gms:play-services-base:10.0.1'
implementation 'com.google.android.gms:play-services-maps:10.0.1'
if (enableHermes) {
def hermesPath = "../../node_modules/hermes-engine/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
implementation jscFlavor
}
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
project.ext.vectoricons = [
iconFontNames: [ 'MaterialIcons.ttf', 'FontAwesome.ttf' ] // Name of the font files you want to copy
]
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
apply from: file("../../node_modules/#react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
React Native Version: 0.61
I solved that problem erasing that code in android/app/build.gradle
implementation(project(':react-native-maps')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
implementation 'com.google.android.gms:play-services-base:10.0.1'
implementation 'com.google.android.gms:play-services-maps:10.0.1'

BeforeBuild and AfterBuild events in Visual Studio Tools for Cordova 2015 Update 5

I am trying to use pre and post build in my Visual Studio 2015 (TACO) project. As outlined in PreBuildEvent and PostBuildEvent on Visual Studio 2015 Tools for Apache Cordova I have added <Target> elements to my .jsproj file so that it now ends as shown:
<Import Project="_apacheCordovaProjectSourceItems.Targets" Condition="Exists('_apacheCordovaProjectSourceItems.Targets')" />
<Target Name="BeforeBuild">
<Exec Command="if $(ConfigurationName) == Release (echo ** Before Build **)" />
<Exec Command="attrib -R "$(ProjectDir)\platforms\*.*" /S" IgnoreExitCode="true" />
</Target>
<Target Name="AfterBuild">
<Exec Command="if $(ConfigurationName) == Release (echo ** After Build **)" />
<Exec Command="if $(ConfigurationName) == Release (xcopy "$(TargetDir)*.*" "$(SolutionDir)..\..\Binaries\$(PlatformName)\*.*" /Y /S /E /F /I)" />
</Target>
</Project>
My problem is that both the BeforeBuild and AfterBuild events fire at the beginning of the build
1>------ Build started: Project: MyProject, Configuration: Release Android ------
1> ** Before Build **
1> ** After Build **
1> D:\Workspaces\Products\MyProduct\Projects\Main\Sources\Apps\MyProject\bin\Android\Release\android-release-unsigned.apk -> D:\Workspaces\Products\MyProduct\Projects\Binaries\Android\android-release-unsigned.apk
1> D:\Workspaces\Products\MyProduct\Projects\Main\Sources\Apps\MyProject\bin\Android\Release\manifest-merger-release-report.txt -> D:\Workspaces\Products\MyProduct\Projects\Binaries\Android\manifest-merger-release-report.txt
1> 2 File(s) copied
1> Your environment has been set up for using Node.js 0.12.2 (ia32) and npm.
1> ... [Rest of output omitted] ...
Can anybody shed some light on why this is, or how I can get the post build event to run after the build has completed?
After banging my head against a wall for a while I gave up on the Visual Studio AfterBuild event and used a hook for the Cordova after_build one. It fires a bit earlier in the whole build process, but was good enough for my requirements. I'll post the gist of what it entails in case others need to do a similar thing.
Find the config.xml in Solution Explorer, right click on it and select View Code
In the config.xml add a <hook> section as follows
<platform name="android">
<hook type="after_build" src="scripts/afterbuild-copy-to-drop.js" />
</platform>
Here I am hooking into the after_build event for an Android build only.
Now create a scripts folder at the root of the project, ie the same level as the plugins and www folders.
Create a JavaScript file in here with a name that matches the src attribute in the hook definition, ie 'afterbuild-copy-to-drop.js'.
In this script file write the required code. Here is mine
module.exports = function (ctx) {
console.log('Executing custom "' + ctx.hook + '" hook for ' + ctx.opts.platforms);
var path = ctx.requireCordovaModule('path'),
shell = ctx.requireCordovaModule('shelljs');
// make sure we are in a release build
var isRelease = (ctx.cmdLine.indexOf('--configuration Release') >= 0);
var solutionRoot = path.join(ctx.opts.projectRoot, '../..');
var dropRoot = path.join(solutionRoot, '../../Binaries/Release/Apps');
if (isRelease){
if (ctx.opts.platforms == 'android') {
var platformRoot = path.join(ctx.opts.projectRoot, 'platforms/android');
var apkFileLocation = path.join(platformRoot, 'build/outputs/apk/android-release.apk');
dropRoot = path.join(dropRoot, 'Android');
var dropApkFileLocation = path.join(dropRoot, 'my-app.apk');
console.log('------ Making directory \'' + dropRoot + '\'');
shell.mkdir('-p', dropRoot);
console.log('------ Copying \'' + apkFileLocation + '\' to ' + dropApkFileLocation + '\'');
shell.cp('-f', apkFileLocation, dropApkFileLocation);
}
}
console.log('Finished executing "' + ctx.hook + '" hook for ' + ctx.opts.platforms);
};
Further information on hooks can be found at https://cordova.apache.org/docs/en/dev/guide/appdev/hooks/

How to combine InputKey and TaskKey into a new InputKey?

I have a SBT multi project which includes two sub projects. One is an ordinary Scala web server project and the other is just some web files. With my self written SBT plugin I can run Gulp on the web project. This Gulp task runs asynchronous. So with
sbt "web/webAppStart" "server/run"
I can start the Gulp development web server and my Scala backend server in parallel. Now I want to create a new task, that combines them both. So afterwards
sbt dev
for example should do the same. Here is what I tried so far:
// Build.sbt (only the relevant stuff)
object Build extends sbt.Build {
lazy val runServer: InputKey[Unit] = run in server in Compile
lazy val runWeb: TaskKey[Unit] = de.choffmeister.sbt.WebAppPlugin.webAppStart
lazy val dev = InputKey[Unit]("dev", "Starts a development web server")
// Scala backend project
lazy val server = (project in file("project-server"))
// Web frontend project
lazy val web = (project in file("project-web"))
// Root project
lazy val root = (project in file("."))
.settings(dev <<= (runServer) map { (_) => {
// do nothing
})
.aggregate(server, web)
This works so far. Now I don't have any idea, how to make dev also depend on the runWeb task. If I just add the runWeb task like
.settings(dev <<= (runWeb, runServer) map { (_, _) => {
// do nothing
})
then I get the error
[error] /Users/choffmeister/Development/shop/project/Build.scala:59:value map is not a member of (sbt.TaskKey[Unit], sbt.InputKey[Unit])
[error] .settings(dev <<= (runWeb, runServer) map { (_, _) =>
[error] ^
[error] one error found
[error] (compile:compile) Compilation failed
Can anyone help me with this please?
The optimal solution would pass the arguments given to dev to the runServer task. But I could also live with making dev a TaskKey[Unit] and then hard code to run runServer with no arguments.
tl;dr Use .value macro to execute dependent tasks or just alias the task sequence.
Using .value macro
Your case seems overly complicated to my eyes because of the pre-0.13 syntax (<<=) and the use of project/Build.scala (that often confuse not help people new to sbt).
You should just execute the two tasks in another as follows:
dev := {
runWeb.value
runServer.value
}
The complete example:
lazy val server = project
lazy val runServer = taskKey[Unit]("runServer")
runServer := {
println("runServer")
(run in server in Compile).value
}
lazy val runWeb = taskKey[Unit]("runWeb")
runWeb := {
println("runWeb")
}
lazy val dev = taskKey[Unit]("dev")
dev := {
println("dev")
}
dev <<= dev dependsOn (runServer, runWeb)
Using alias command
sbt offers alias command that...
[sbt-learning-space]> help alias
alias
Prints a list of defined aliases.
alias name
Prints the alias defined for `name`.
alias name=value
Sets the alias `name` to `value`, replacing any existing alias with that name.
Whenever `name` is entered, the corresponding `value` is run.
If any argument is provided to `name`, it is appended as argument to `value`.
alias name=
Removes the alias for `name`.
Just define what tasks/command you want to execute in an alias as follows:
addCommandAlias("devAlias", ";runServer;runWeb")
Use devAlias as if it were a built-in task:
[sbt-learning-space]> devAlias
runServer
[success] Total time: 0 s, completed Jan 25, 2015 6:30:15 PM
runWeb
[success] Total time: 0 s, completed Jan 25, 2015 6:30:15 PM

Add task to Build.scala

The document http://www.scala-sbt.org/0.13.0/docs/Detailed-Topics/Tasks.html explains how to add a task to build.sbt, but how do you add one to build.scala? Thanks
The part where you declare the TaskKey is the same in either format: val myTask = taskKey....
The part where you write out your Initialize[Task[T]] is the same: myTask := ....
The only difference is the context in which the latter thing appears.
In the .sbt format, it appears by itself, separated from other things by blank lines.
In the .scala format, you have to add the setting to the project. That's documented at http://www.scala-sbt.org/release/docs/Getting-Started/Full-Def.html and is the same regardless of whether we're talking about a task or a regular setting.
Here's a complete working example:
import sbt._
object MyBuild extends Build {
val myTask = taskKey[Unit]("...")
lazy val root =
Project(id = "MyProject", base = file("."))
.settings(
myTask := { println("hello") }
)
}
When defining a task in one project of a multi project build and using a "root" project to aggregate other projects, the aggregation means that any tasks in subprojects can be run from the root project as well, in fact this will run the tasks in all subprojects - see Multi-project builds. This is generally useful, for example to compile all subprojects when the compile task is run from the root project. However in this case it is a little confusing.
So the task is not accessible in all projects, but is accessible in both the subproject where you define the task, and the aggregating (root) project. The task is still running in the project where it is defined, it can just be called when in the root project.
To demonstrate this, we can have the same "hello" task defined in multiple sub projects, which are aggregated in a root project:
import sbt._
import Keys._
object Build extends Build {
val hwsettings = Defaults.defaultSettings ++ Seq(
organization := "organization",
version := "0.1",
scalaVersion := "2.10.4"
)
val hello = TaskKey[Unit]("hello", "Prints hello.")
lazy val projectA = Project(
"a",
file("a"),
settings = hwsettings ++ Seq(
hello := {println("Hello from project A!")}
))
lazy val projectB = Project(
"b",
file("b"),
settings = hwsettings ++ Seq(
hello := {println("Hello from project B!")}
))
lazy val projectC = Project(
"c",
file("c"),
settings = hwsettings
)
lazy val root = Project (
"root",
file ("."),
settings = hwsettings
) aggregate (projectA, projectB, projectC)
}
Note that projects a and b have "hello" tasks, and c does not. When we use "hello" from the root project, the aggregation causes the task to run in projects a AND b:
> project root
[info] Set current project to root (in build file:/Users/trepidacious/temp/multiProjectTasks/)
> hello
Hello from project A!
Hello from project B!
[success] Total time: 0 s, completed 24-Dec-2014 23:00:23
We can also switch to project a or b, and running hello will only run the task in the project we are in:
> project a
[info] Set current project to a (in build file:/Users/trepidacious/temp/multiProjectTasks/)
> hello
Hello from project A!
[success] Total time: 0 s, completed 24-Dec-2014 23:00:27
> project b
[info] Set current project to b (in build file:/Users/trepidacious/temp/multiProjectTasks/)
> hello
Hello from project B!
[success] Total time: 0 s, completed 24-Dec-2014 23:00:30
Finally, if we switch to project c, hello is not defined:
> project c
[info] Set current project to c (in build file:/Users/trepidacious/temp/multiProjectTasks/)
> hello
[error] Not a valid command: hello (similar: shell, help, reload)
[error] No such setting/task
[error] hello
[error] ^
>
This aggregation can be disabled, as described here.

Resources