locked
Issues compiling in Release RRS feed

  • Question

  • User148620 posted

    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+<>cDisplayClass32_02[TSource,TLocal].<ForEachWorker>b__0 (System.Int32 i) [0x00000] in <a2bfeec6715c4fdfa8972c2780c54eba>:0 at System.Threading.Tasks.Parallel+<>c__DisplayClass19_01[TLocal].b1 (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_DisplayClass1901[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?

    Saturday, July 6, 2019 11:27 PM

Answers

  • User371688 posted

    Could you please post the code of manifest.xml of this app? There may have some problem with the setting parameters. For example,there is a parameter: android:versionCode="" (equivalent to Version number ), which should been parse into int . If you set the value to something else which couldn't been parse into int(e.g. android:versionCode="1.2"), then it will throws a error like this.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, July 8, 2019 6:36 AM