Issues compiling in Release

FedericoNavarreteFedericoNavarrete SVMember ✭✭
edited July 6 in Xamarin.Android

Fellow developers,

When I try compiling in production, I'm getting this error:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error: Input string was not in a correct format.
at System.Number.StringToNumber (System.ReadOnlySpan1[T] str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x00053] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/Number.Parsing.cs:872 at System.Number.ParseInt32 (System.ReadOnlySpan1[T] s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x0000a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/Number.Parsing.cs:308
at System.Int32.Parse (System.String s) [0x0000a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/Int32.cs:109
at Xamarin.Android.Tasks.ManifestDocument.CalculateVersionCode (System.String currentAbi, System.String versionCodePattern, System.String versionCodeProperties) [0x000bb] in <4ab78b798f2e4a7e9760a2140b53c6f8>:0
at Xamarin.Android.Tasks.Aapt.GenerateCommandLineCommands (System.String ManifestFile, System.String currentAbi, System.String currentResourceOutputFile) [0x000d7] in <4ab78b798f2e4a7e9760a2140b53c6f8>:0
at Xamarin.Android.Tasks.Aapt.ProcessManifest (Microsoft.Build.Framework.ITaskItem manifestFile) [0x0017d] in <4ab78b798f2e4a7e9760a2140b53c6f8>:0
at System.Threading.Tasks.Parallel+<>c__DisplayClass32_02[TSource,TLocal].<ForEachWorker>b__0 (System.Int32 i) [0x00000] in <a2bfeec6715c4fdfa8972c2780c54eba>:0 at System.Threading.Tasks.Parallel+<>c__DisplayClass19_01[TLocal].b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x000db] in :0
--- End of stack trace from previous location where exception was thrown ---

at System.Threading.Tasks.Parallel+<>c__DisplayClass19_01[TLocal].<ForWorker>b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x001f1] in <a2bfeec6715c4fdfa8972c2780c54eba>:0 at System.Threading.Tasks.TaskReplicator+Replica1[TState].ExecuteAction (System.Boolean& yieldedBeforeCompletion) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs:123
at System.Threading.Tasks.TaskReplicator+Replica.Execute () [0x00023] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-08/external/bockbuild/builds/mono-x64/external/corefx/src/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs:78 (TipSal)

I tried changing the compiler from dx to d8, disabling or enabling Concurrent Garbage Collector, changing the Linkers as the Code Shrinker. I don't get the same issue in Debug.

But I don't get that issue in Debug. Any idea what am I doing wrong?

Best Answer

Answers

Sign In or Register to comment.