You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to build my app on android but it fails with the message:
Execution failed for task ':unityLibrary:BuildIl2CppTask'.
[ ] > Process 'command '/Applications/Unity/Hub/Editor/2020.1.17f1/Unity.app/Contents/MonoBleedingEdge/bin/mono'' finished with non-zero exit value 1.
The full Error message looks like that:
[ ] Running il2cpp.exe in workstation GC mode.
[ ] il2cpp.exe didn't catch exception: System.InvalidOperationException: Sequence contains no matching element
[ ] at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in
<351e49e2a5bf4fd6beabb458ce2255f3>:0
[ ] at Unity.Options.OptionsParser.ParseEnumValue (System.Type type, System.String value) [0x00024] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.ParseValue (System.Type type, System.String value, System.Func`3[T1,T2,TResult] customValueParser) [0x00019] in
<7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.SetBasicType (System.Reflection.FieldInfo field, System.String v, System.Func`3[T1,T2,TResult] customValueParser, System.Object
instance) [0x00008] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser+<>c__DisplayClass35_0.<ActionFor>b__5 (System.String v) [0x00000] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet+<>c__DisplayClass14_0.<Add>b__0 (NDesk.Options.OptionValueCollection v) [0x0000d] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet+ActionOption.OnParseComplete (NDesk.Options.OptionContext c) [0x0000c] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.Option.Invoke (NDesk.Options.OptionContext c) [0x00000] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet.ParseValue (System.String option, NDesk.Options.OptionContext c) [0x00089] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet.Parse (System.String argument, NDesk.Options.OptionContext context) [0x0007c] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet.Parse (System.Collections.Generic.IEnumerable`1[T] arguments, System.String currentDirectory) [0x00171] in
<7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.Parse (System.Collections.Generic.IEnumerable`1[T] commandLine, System.Func`3[T1,T2,TResult] customValueParser, System.String
currentDirectory, System.Object[] instances) [0x00009] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.Prepare (System.String[] commandLine, System.Type[] types, System.Func`3[T1,T2,TResult] customValueParser, System.String
currentDirectory, System.Object[] instances) [0x00021] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.Prepare (System.String[] commandLine, System.Type[] types, System.Func`3[T1,T2,TResult] customValueParser, System.String
currentDirectory) [0x00000] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at il2cpp.Il2CppOptionParser.ParseArguments (System.String[] args, System.Boolean& continueToRun, System.Int32& exitCode, Unity.IL2CPP.Common.RuntimePlatform&
platform, Unity.IL2CPP.Building.BuildingOptions& buildingOptions, System.String& profilerOutput) [0x0005d] in <3be9f628f5fa469389bd6a91a579ba8a>:0
[ ] at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00040] in <3be9f628f5fa469389bd6a91a579ba8a>:0
[ ] at il2cpp.Program.Main (System.String[] args) [0x00000] in <3be9f628f5fa469389bd6a91a579ba8a>:0
[ ] Unhandled Exception:
[ ] System.InvalidOperationException: Sequence contains no matching element
[ ] at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in
<351e49e2a5bf4fd6beabb458ce2255f3>:0
[ ] at Unity.Options.OptionsParser.ParseEnumValue (System.Type type, System.String value) [0x00024] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.ParseValue (System.Type type, System.String value, System.Func`3[T1,T2,TResult] customValueParser) [0x00019] in
<7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.SetBasicType (System.Reflection.FieldInfo field, System.String v, System.Func`3[T1,T2,TResult] customValueParser, System.Object
instance) [0x00008] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser+<>c__DisplayClass35_0.<ActionFor>b__5 (System.String v) [0x00000] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet+<>c__DisplayClass14_0.<Add>b__0 (NDesk.Options.OptionValueCollection v) [0x0000d] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet+ActionOption.OnParseComplete (NDesk.Options.OptionContext c) [0x0000c] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.Option.Invoke (NDesk.Options.OptionContext c) [0x00000] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet.ParseValue (System.String option, NDesk.Options.OptionContext c) [0x00089] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet.Parse (System.String argument, NDesk.Options.OptionContext context) [0x0007c] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet.Parse (System.Collections.Generic.IEnumerable`1[T] arguments, System.String currentDirectory) [0x00171] in
<7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.Parse (System.Collections.Generic.IEnumerable`1[T] commandLine, System.Func`3[T1,T2,TResult] customValueParser, System.String
currentDirectory, System.Object[] instances) [0x00009] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.Prepare (System.String[] commandLine, System.Type[] types, System.Func`3[T1,T2,TResult] customValueParser, System.String
currentDirectory, System.Object[] instances) [0x00021] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.Prepare (System.String[] commandLine, System.Type[] types, System.Func`3[T1,T2,TResult] customValueParser, System.String
currentDirectory) [0x00000] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at il2cpp.Il2CppOptionParser.ParseArguments (System.String[] args, System.Boolean& continueToRun, System.Int32& exitCode, Unity.IL2CPP.Common.RuntimePlatform&
platform, Unity.IL2CPP.Building.BuildingOptions& buildingOptions, System.String& profilerOutput) [0x0005d] in <3be9f628f5fa469389bd6a91a579ba8a>:0
[ ] at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00040] in <3be9f628f5fa469389bd6a91a579ba8a>:0
[ ] at il2cpp.Program.Main (System.String[] args) [0x00038] in <3be9f628f5fa469389bd6a91a579ba8a>:0
[ ] [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Sequence contains no matching element
[ ] at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in
<351e49e2a5bf4fd6beabb458ce2255f3>:0
[ ] at Unity.Options.OptionsParser.ParseEnumValue (System.Type type, System.String value) [0x00024] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.ParseValue (System.Type type, System.String value, System.Func`3[T1,T2,TResult] customValueParser) [0x00019] in
<7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.SetBasicType (System.Reflection.FieldInfo field, System.String v, System.Func`3[T1,T2,TResult] customValueParser, System.Object
instance) [0x00008] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser+<>c__DisplayClass35_0.<ActionFor>b__5 (System.String v) [0x00000] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet+<>c__DisplayClass14_0.<Add>b__0 (NDesk.Options.OptionValueCollection v) [0x0000d] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet+ActionOption.OnParseComplete (NDesk.Options.OptionContext c) [0x0000c] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.Option.Invoke (NDesk.Options.OptionContext c) [0x00000] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet.ParseValue (System.String option, NDesk.Options.OptionContext c) [0x00089] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet.Parse (System.String argument, NDesk.Options.OptionContext context) [0x0007c] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at NDesk.Options.OptionSet.Parse (System.Collections.Generic.IEnumerable`1[T] arguments, System.String currentDirectory) [0x00171] in
<7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.Parse (System.Collections.Generic.IEnumerable`1[T] commandLine, System.Func`3[T1,T2,TResult] customValueParser, System.String
currentDirectory, System.Object[] instances) [0x00009] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.Prepare (System.String[] commandLine, System.Type[] types, System.Func`3[T1,T2,TResult] customValueParser, System.String
currentDirectory, System.Object[] instances) [0x00021] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at Unity.Options.OptionsParser.Prepare (System.String[] commandLine, System.Type[] types, System.Func`3[T1,T2,TResult] customValueParser, System.String
currentDirectory) [0x00000] in <7ba99c4b386f49249f563198b86bf734>:0
[ ] at il2cpp.Il2CppOptionParser.ParseArguments (System.String[] args, System.Boolean& continueToRun, System.Int32& exitCode, Unity.IL2CPP.Common.RuntimePlatform&
platform, Unity.IL2CPP.Building.BuildingOptions& buildingOptions, System.String& profilerOutput) [0x0005d] in <3be9f628f5fa469389bd6a91a579ba8a>:0
[ ] at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00040] in <3be9f628f5fa469389bd6a91a579ba8a>:0
[ ] at il2cpp.Program.Main (System.String[] args) [0x00038] in <3be9f628f5fa469389bd6a91a579ba8a>:0
[+3595 ms] > Task :flutter_unity_widget:compileReleaseKotlin
[ ] w:
/Users/Work/.pub-cache/hosted/pub.dartlang.org/flutter_unity_widget-2022.1.0+7/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/OverrideUnityActivity.kt: (59,
59): Unnecessary safe call on a non-null receiver of type Bundle?
[ ] w:
/Users/Work/.pub-cache/hosted/pub.dartlang.org/flutter_unity_widget-2022.1.0+7/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/OverrideUnityActivity.kt: (62,
54): Unnecessary safe call on a non-null receiver of type Bundle?
[ ] w:
/Users/Work/.pub-cache/hosted/pub.dartlang.org/flutter_unity_widget-2022.1.0+7/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/OverrideUnityActivity.kt: (72,
54): Unnecessary safe call on a non-null receiver of type Bundle?
[ +195 ms] FAILURE: Build failed with an exception.
[ ] * Where:
[ ] Build file '/Users/Work/Desktop/SnapNext/OrthomolAR/android/unityLibrary/build.gradle' line: 73
[ ] * What went wrong:
[ ] Execution failed for task ':unityLibrary:BuildIl2CppTask'.
[ ] > Process 'command '/Applications/Unity/Hub/Editor/2020.1.17f1/Unity.app/Contents/MonoBleedingEdge/bin/mono'' finished with non-zero exit value 1
[ ] * Try:
[ ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[ ] * Get more help at https://help.gradle.org
[ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[ ] Use '--warning-mode all' to show the individual deprecation warnings.
[ ] See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings
[ ] BUILD FAILED in 50s
[ ] 271 actionable tasks: 255 executed, 16 up-to-date
[ +426 ms] Running Gradle task 'assembleRelease'... (completed in 54.5s)
[ +22 ms] "flutter apk" took 62,197ms.
[ +6 ms] Gradle task assembleRelease failed with exit code 1
[ ]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 AndroidGradleBuilder.buildGradleApp (package:flutter_tools/src/android/gradle.dart:400:9)
<asynchronous suspension>
#2 AndroidGradleBuilder.buildApk (package:flutter_tools/src/android/gradle.dart:179:5)
<asynchronous suspension>
#3 BuildApkCommand.runCommand (package:flutter_tools/src/commands/build_apk.dart:112:5)
<asynchronous suspension>
#4 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
<asynchronous suspension>
#5 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#6 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
#8 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#9 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#10 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#11 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#12 main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>
[ +152 ms] ensureAnalyticsSent: 147ms
[ +1 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1
This is my build.gradle file in the android/app directory:
Hi @khalithartmann ,
Try to upgrade unity to 2022.3.4f1 and use fuw-2022.1.1 package also nice to upgrade flutter unity widget.
Later import package few-2022.1.1 into unity project (this package fixes some older issues).
Describe the bug
I'm trying to build my app on android but it fails with the message:
The full Error message looks like that:
This is my build.gradle file in the android/app directory:
This is the Gradle File in the android/unityLibrary directory that was generated by unity :
Im currently using flutter_unity_widget: ^2022.1.0+4
Please help. Have been stuck since days...
The text was updated successfully, but these errors were encountered: